Method | Description | |
---|---|---|
CurrentTile ( ) : |
||
Draw ( |
Draws the contents on screen
|
|
Initialize ( ) : void | ||
LiveGrid ( |
Creates a new live grid.
|
|
MoveTo ( Direction dir ) : void |
Moves to the given direction.
|
|
SetNewCenter ( int x, int z ) : void |
Sets new MapTile as the center of the LiveGrid.
|
|
UpdateToTile ( int x, int z ) : void |
Sets a new center for the grid if the given tile isn't current.
|
Method | Description | |
---|---|---|
UpdateGrid ( ) : void |
Updates the 9 tiles of the LiveGrid.
|
public Draw ( |
||
gameTime | ||
return | void |
public LiveGrid ( |
||
game | ||
mapGrid | ||
return | System |
public MoveTo ( Direction dir ) : void | ||
dir | Direction | A compass point |
return | void |
public SetNewCenter ( int x, int z ) : void | ||
x | int | The centertile's x position in the MapGrid. |
z | int | The centertile's z position in the MapGrid. |
return | void |