Method | Description | |
---|---|---|
Draw ( ) : void | ||
GetTileFromPos ( System.Vector3 position ) : Tile |
Returns a tile given a Vector3 position
|
|
GetTileFromType ( TileType tileType ) : Tile | ||
GetTileNeighbor ( Tile tile, NeighborTile neighborTile ) : Tile |
Gets a neigbhoring tile's position
|
|
GetWalkableNeighbors ( Tile tile ) : List |
||
GetWalkableNeighbors ( Tile tile, Tile>.Dictionary |
||
InitializeTileMap ( System.Vector3 position, System.Vector2 numTiles, System.Vector2 tileSize ) : void | ||
IsTilePathsValid ( ) : bool | ||
RemoveTower ( Tile tile ) : void | ||
SetBase ( Base setBase ) : void | ||
SetObject ( Base gameObject, Tile tile ) : void | ||
SetObject ( Tower gameObject, Tile tile ) : void | ||
SetTower ( Tower tower, Tile tile ) : bool | ||
SetTowerForLevelMap ( Tower tower, Tile tile ) : void | ||
UpdateTilePaths ( ) : void |
Method | Description | |
---|---|---|
InitializeTiles ( ) : void |
Method | Description | |
---|---|---|
OnTowerCreated ( ) : void |
public static GetTileFromPos ( System.Vector3 position ) : Tile | ||
position | System.Vector3 | The position to investigate |
return | Tile |
public static GetTileFromType ( TileType tileType ) : Tile | ||
tileType | TileType | |
return | Tile |
public static GetTileNeighbor ( Tile tile, NeighborTile neighborTile ) : Tile | ||
tile | Tile | The start tile |
neighborTile | NeighborTile | The neighbor to examine |
return | Tile |
public static GetWalkableNeighbors ( Tile tile ) : List |
||
tile | Tile | |
return | List |
public static GetWalkableNeighbors ( Tile tile, Tile>.Dictionary |
||
tile | Tile | |
exclude | Tile>.Dictionary | |
return | List |
public static InitializeTileMap ( System.Vector3 position, System.Vector2 numTiles, System.Vector2 tileSize ) : void | ||
position | System.Vector3 | |
numTiles | System.Vector2 | |
tileSize | System.Vector2 | |
return | void |
public static RemoveTower ( Tile tile ) : void | ||
tile | Tile | |
return | void |
public static SetBase ( Base setBase ) : void | ||
setBase | Base | |
return | void |
public static SetObject ( Base gameObject, Tile tile ) : void | ||
gameObject | Base | |
tile | Tile | |
return | void |
public static SetObject ( Tower gameObject, Tile tile ) : void | ||
gameObject | Tower | |
tile | Tile | |
return | void |
public static SetTower ( Tower tower, Tile tile ) : bool | ||
tower | Tower | |
tile | Tile | |
return | bool |
public static SetTowerForLevelMap ( Tower tower, Tile tile ) : void | ||
tower | Tower | |
tile | Tile | |
return | void |