Structure that represents a tile on the game map grid.
More...
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.
§ Node()
Model.Map_Module.Node.Node |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
Creates a node at position x,y, with default set to not being an obstacle or movabilityObstruction.
- Parameters
-
x | X position of the node on the graph (by node). |
y | Y position of the node on the graph (by node). |
§ getPosition()
Vector2 Model.Map_Module.Node.getPosition |
( |
| ) |
|
Returns the Vector position of the node on the graph.
§ getPositionX()
int Model.Map_Module.Node.getPositionX |
( |
| ) |
|
Returns the X position of the node on the graph.
§ getPositionY()
int Model.Map_Module.Node.getPositionY |
( |
| ) |
|
Returns the Y position of the node on the graph.
§ isOccupied()
bool Model.Map_Module.Node.isOccupied |
( |
| ) |
|
Indicates whether the node is occupied by a unit.
§ isObstacle
bool Model.Map_Module.Node.isObstacle |
|
getset |
Indicates whether a unit can stand inside the tile.
§ movabilityObstruction
int Model.Map_Module.Node.movabilityObstruction |
|
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).
§ unitOnNode
Unit Model.Map_Module.Node.unitOnNode |
|
getset |
Gets and sets the unit that is on the node.
The documentation for this class was generated from the following file:
- C:/Users/Thien Trandinh/Documents/Blaze-Brigade/src/Blaze-Brigade/Blaze_Brigade/Node.cs