Метод | Описание | |
---|---|---|
AddTile ( int x, int y ) : void |
Add a tile to a cell
|
|
GetAllTiles ( ) : ].bool[ |
Get a 2D array of all tiles
|
|
GetTile ( int x, int y ) : bool |
Get the state of a cell
|
|
GetTileRectangle ( int x, int y ) : |
Get a rectangle encompassing a tile
|
|
RemoveTile ( int x, int y ) : void |
Remove a tile from a cell
|
|
TileManager ( float width, float height, int tileSize ) : System |
Create a new tile Manager
|
|
TileManager ( int width, int height, int tileSize ) : System |
Create a new tile manager
|
Метод | Описание | |
---|---|---|
IsInBounds ( int x, int y ) : bool |
Check if grid cell is in bounds
|
public AddTile ( int x, int y ) : void | ||
x | int | X position of cell |
y | int | Y position of cell |
Результат | void |
public GetTile ( int x, int y ) : bool | ||
x | int | X position of cell |
y | int | Y position of cell |
Результат | bool |
public GetTileRectangle ( int x, int y ) : |
||
x | int | X position of cell |
y | int | Y position of cell |
Результат |
public RemoveTile ( int x, int y ) : void | ||
x | int | X position of cell |
y | int | Y position of cell |
Результат | void |
public TileManager ( float width, float height, int tileSize ) : System | ||
width | float | Width of the grid (tiles, rounds up) |
height | float | Height of the grid (tiles, rounds up) |
tileSize | int | Size of each tile (pixels) |
Результат | System |
public TileManager ( int width, int height, int tileSize ) : System | ||
width | int | Width of the grid (tiles) |
height | int | Height of the grid (tiles) |
tileSize | int | Size of each tile (pixels) |
Результат | System |