My Project
|
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.
|
inline |
Creates a node at position x,y, with default set to not being an obstacle or movabilityObstruction.
x | X position of the node on the graph (by node). |
y | Y position of the node on the graph (by node). |
|
inline |
Returns the Vector position of the node on the graph.
|
inline |
Returns the X position of the node on the graph.
|
inline |
Returns the Y position of the node on the graph.
|
inline |
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.