Blaze Brigade
|
Structure that represents a tile on the game map grid. More...
Public Member Functions | |
Node (int x, int y) | |
Vector2 | getPosition () |
int | getPositionX () |
int | getPositionY () |
bool | isOccupied () |
Properties | |
int | movabilityObstruction [get, set] |
bool | isObstacle [get, set] |
Unit | unitOnNode [get, set] |
Structure that represents a tile on the game map grid.
Programmatical representation of a tile on the map grid. Holds information pertaining to the tile.
Model.Node.Node | ( | int | x, |
int | y | ||
) |
Creates a node.
x | X position of the node on the graph (by node). |
y | Y position of the node on the graph (by node). |
Vector2 Model.Node.getPosition | ( | ) |
Returns the position of the node on the graph.
int Model.Node.getPositionX | ( | ) |
Returns the X position of the node on the graph.
int Model.Node.getPositionY | ( | ) |
Returns the Y position of the node on the graph.
bool Model.Node.isOccupied | ( | ) |
Indicates whether the node is occupied by a unit.
|
getset |
Indicates whether a unit can stand inside the tile.
|
getset |
Index for hindrance of the movability of a unit. The higher the index, the less a unit can move through the tile. Set to 0 by default (no hindrance).
|
getset |
Gets and sets the unit that is on the node.