Property | Type | Description | |
---|---|---|---|
Background | Color[] | ||
BorderColour | Color[] | ||
BridgeTileColour | Color[] | ||
GlobalCeilingHeight | int | ||
LavaTileColour | Color[] | ||
MapNotes | List |
||
OnGround | bool | ||
OnLava | bool | ||
OnWater | bool | ||
OpenTileColour | Color[] | ||
StairsTileColour | Color[] | ||
TileSize | int | ||
Tiles | TileInfo[] | ||
WaterTileColour | Color[] | ||
visitTileX | int | ||
visitTileY | int |
Method | Description | |
---|---|---|
DrawDiagNE ( int LevelNo, |
Draws the diag NE tile.
|
|
DrawDiagNW ( int LevelNo, |
Draws the diag NW tile
|
|
DrawDiagSE ( int LevelNo, |
Draws the diag SE tile.
|
|
DrawDiagSW ( int LevelNo, |
Draws a diagonal SW tile.
|
|
GetCeilingHeight ( int LevelNo, int tileX, int tileY ) : int |
Gets the height of the ceiling. Will always be the same value in UW1/2 varies in SHOCK.
|
|
GetFloorHeight ( int LevelNo, int tileX, int tileY ) : int |
Gets the height of the floor for the specified tile.
|
|
GetTileType ( int tileX, int tileY ) : int |
Gets the type of the tile.
|
|
GetTileType ( int LevelNo, int tileX, int tileY ) : int |
Gets the type of the tile.
|
|
LoadTileMapInfo ( string fileName ) : bool |
Loads the tile map info from a config file called GAMENAME+ "_tileprops.txt"
|
|
PickColour ( Color Selection ) : Color |
Picks a random colour from the array of colours
|
|
PositionDetect ( ) : void |
Detects where the player currently is an updates their swimming state and auto map as needed.
|
|
SetCeilingHeight ( int LevelNo, int tileX, int tileY, int newHeight ) : void |
Sets the height of the ceiling.
|
|
SetFloorHeight ( int LevelNo, int tileX, int tileY, int newHeight ) : void |
Sets the height of the floor.
|
|
SetTileVisited ( int LevelNo, int tileX, int tileY ) : void |
Sets the tile and it's neighbours as visited. visited.
|
|
Start ( ) : void | ||
TileMapImage ( ) : Texture2D |
Generates a tile map image for the automap for the current level.
|
|
TileMapImage ( int LevelNo ) : Texture2D |
Generates a tile map image for the automap for the specified level.
|
|
ValidTile ( Vector3 location ) : bool |
Checks to see if the tile at a specified location is within the valid game world. (eg is rendered and is not a solid). Assumes the map is positioned at 0,0,0
|
|
current ( ) : TileInfo |
Returns the current levels tile map info.
|
|
getTileVector ( int tileX, int tileY ) : Vector3 |
Gets the vector3 at the center of the tile specified.
|
|
isTileOpen ( int TileType ) : bool |
Tells if the tile is one of the square open types
|
Method | Description | |
---|---|---|
DrawDoor ( |
Draws a door at the tile specified. Checks the neighbouring tiles to find out which one is open
|
|
DrawLine ( |
Draws a line at the specified border direction.
|
|
DrawOpenTile ( int LevelNo, |
Draws the open tile. Checks the neighbouring tiles to see if it needs to draw a border.
|
|
DrawSolidTile ( |
Draws a solid tile with no border.
|
|
GetIsBridge ( int LevelNo, int tileX, int tileY ) : bool |
Gets if the tile is a bridge.
|
|
GetIsDoor ( int LevelNo, int tileX, int tileY ) : bool |
Gets if the tile contains a door.
|
|
GetIsLava ( int LevelNo, int tileX, int tileY ) : bool |
Is the tile Lava
|
|
GetIsWater ( int LevelNo, int tileX, int tileY ) : bool |
Is the tile water.
|
|
GetTileRender ( int LevelNo, int tileX, int tileY ) : int |
Gets the tile render state. Only affects the automap.
|
|
GetTileVisited ( int LevelNo, int tileX, int tileY ) : bool |
Has the tile been already visited.
|
|
MarkTile ( int LevelNo, int tileX, int tileY ) : void |
Marks the tile as visited and checks if it is in range.
|
|
SetIsBridge ( int LevelNo, int tileX, int tileY, int iIsBridge ) : void |
Marks if the tile has a bridge.
|
|
SetIsDoor ( int LevelNo, int tileX, int tileY, int iIsDoor ) : void |
Sets if the tile is a door
|
|
SetIsLava ( int LevelNo, int tileX, int tileY, int iIsLava ) : void |
Sets if the tile is lava.
|
|
SetIsWater ( int LevelNo, int tileX, int tileY, int iIsWater ) : void |
Sets if the tile is water.
|
|
SetTileProp ( int LevelNo, int tileX, int tileY, int itileType, int iRender, int FloorHeight, int CeilingHeight, int iIsWater, int iIsDoor, int iIsLava, int iIsBridge ) : void |
Sets the tile properties that are read in from tileprops.txt
|
|
SetTileRender ( int LevelNo, int tileX, int tileY, int iRender ) : void |
Sets the tile render state. Only affects the automap.
|
|
SetTileType ( int LevelNo, int tileX, int tileY, int itileType ) : void |
Sets the type of the tile.
|
|
fillTile ( int LevelNo, Texture2D OutputTile, int TileX, int TileY, int TileWidth, int TileHeight, Color GroundColour, Color WaterColour, Color LavaColour, Color BridgeColour ) : void |
Fills in a single tile.
|
public DrawDiagNE ( int LevelNo, |
||
LevelNo | int | Level no. |
OutputTile | Output tile. | |
TileX | int | Tile x. |
TileY | int | Tile y. |
TileWidth | int | Tile width. |
TileHeight | int | Tile height. |
InputColour | Color | Input colour. |
return | void |
public DrawDiagNW ( int LevelNo, |
||
LevelNo | int | Level no. |
OutputTile | Output tile. | |
TileX | int | Tile x. |
TileY | int | Tile y. |
TileWidth | int | Tile width. |
TileHeight | int | Tile height. |
InputColour | Color | Input colour. |
return | void |
public DrawDiagSE ( int LevelNo, |
||
LevelNo | int | Level no. |
OutputTile | Output tile. | |
TileX | int | Tile x. |
TileY | int | Tile y. |
TileWidth | int | Tile width. |
TileHeight | int | Tile height. |
InputColour | Color | Input colour. |
return | void |
public DrawDiagSW ( int LevelNo, |
||
LevelNo | int | Level no. |
OutputTile | Output tile. | |
TileX | int | Tile x. |
TileY | int | Tile y. |
TileWidth | int | Tile width. |
TileHeight | int | Tile height. |
InputColour | Color | Input colour. |
return | void |
public GetCeilingHeight ( int LevelNo, int tileX, int tileY ) : int | ||
LevelNo | int | Level no. |
tileX | int | Tile x. |
tileY | int | Tile y. |
return | int |
public GetFloorHeight ( int LevelNo, int tileX, int tileY ) : int | ||
LevelNo | int | Level no. |
tileX | int | Tile x. |
tileY | int | Tile y. |
return | int |
public GetTileType ( int tileX, int tileY ) : int | ||
tileX | int | Tile x. |
tileY | int | Tile y. |
return | int |
public GetTileType ( int LevelNo, int tileX, int tileY ) : int | ||
LevelNo | int | Level no. |
tileX | int | Tile x. |
tileY | int | Tile y. |
return | int |
public LoadTileMapInfo ( string fileName ) : bool | ||
fileName | string | File name. |
return | bool |
public PickColour ( Color Selection ) : Color | ||
Selection | Color | Selection. |
return | Color |
public SetCeilingHeight ( int LevelNo, int tileX, int tileY, int newHeight ) : void | ||
LevelNo | int | Level no. |
tileX | int | Tile x. |
tileY | int | Tile y. |
newHeight | int | New height. |
return | void |
public SetFloorHeight ( int LevelNo, int tileX, int tileY, int newHeight ) : void | ||
LevelNo | int | Level no. |
tileX | int | Tile x. |
tileY | int | Tile y. |
newHeight | int | New height. |
return | void |
public SetTileVisited ( int LevelNo, int tileX, int tileY ) : void | ||
LevelNo | int | Level no. |
tileX | int | Tile x. |
tileY | int | Tile y. |
return | void |
public TileMapImage ( int LevelNo ) : Texture2D | ||
LevelNo | int | Level no. |
return | Texture2D |
public ValidTile ( Vector3 location ) : bool | ||
location | Vector3 | Location. |
return | bool |
public getTileVector ( int tileX, int tileY ) : Vector3 | ||
tileX | int | Tile x. |
tileY | int | Tile y. |
return | Vector3 |
public isTileOpen ( int TileType ) : bool | ||
TileType | int | Tile type. |
return | bool |