mooball
    Preparing search index...

    Class IStadium

    A class that defines a stadium.

    Index

    Constructors

    Properties

    bgColor: number

    The background color of this Stadium. Range: -1 <= bgColor < 16777216.

    • This value can be converted into a rgba string via API's Utils.numberToColor function.
    • The special value -1 means transparent color.
    bgCornerRadius: number

    The radius of the corners for the background of this Stadium.

    bgGoalLine: number

    The goal line's horizontal distance from the default goal positions for the background of this Stadium.

    bgHeight: number

    The height for the background of this Stadium.

    bgKickOffRadius: number

    The kick-off circle's radius for the background of this Stadium.

    The background type of this Stadium.

    bgWidth: number

    The width for the background of this Stadium.

    blueSpawnPoints: Point[]

    All spawn points of this Stadium for the blue team.

    cameraFollow: CameraFollow

    Whether the camera will follow the player or not. Used in Renderers.

    canBeStored: boolean

    Whether this Stadium can be stored or not.

    defaultStadiumId: number

    The id(index) of this Stadium in the default stadiums array. This value will be 255 in custom Stadiums.

    discs: Disc[]

    All discs of this Stadium.

    fonts: string[]

    All fonts of this Stadium.

    fullKickOffReset: boolean

    Whether the disc positions other than the ball are reset or not after a goal is scored.

    goals: Goal[]

    All goals of this Stadium.

    height: number

    The height of this Stadium.

    images: StadiumImage[]

    All images of this Stadium.

    isCustom: boolean

    Whether this is a custom Stadium or a default Stadium.

    joints: Joint[]

    All joints of this Stadium.

    maxViewWidth: number

    The maximum view width for this Stadium. Used in Renderers.

    name: string

    The name of this Stadium.

    planes: Plane[]

    All planes of this Stadium.

    playerPhysics: PlayerPhysics

    The physics properties of all players for this Stadium.

    redSpawnPoints: Point[]

    All spawn points of this Stadium for the red team.

    segments: Segment[]

    All segments of this Stadium.

    spawnDistance: number

    The spawn distance of players for this Stadium.

    texts: StadiumText[]

    All texts of this Stadium.

    textures: Texture[]

    All textures of this Stadium.

    vertices: Vertex[]

    All vertices of this Stadium.

    width: number

    The width of this Stadium.

    Methods

    • Returns the checksum for this Stadium object.

      Returns string | null

      The checksum string of this Stadium object, or null for default stadiums.

    • Returns the hash value for this Stadium object.

      Returns number

      The hash value for this Stadium object.