Blaze Brigade  Rev0
Public Member Functions | Properties | List of all members
Model.Node Class Reference

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]
 

Detailed Description

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.

Constructor & Destructor Documentation

§ Node()

Model.Node.Node ( int  x,
int  y 
)

Creates a node.

Parameters
xX position of the node on the graph (by node).
yY position of the node on the graph (by node).

Member Function Documentation

§ getPosition()

Vector2 Model.Node.getPosition ( )

Returns the position of the node on the graph.

§ getPositionX()

int Model.Node.getPositionX ( )

Returns the X position of the node on the graph.

§ getPositionY()

int Model.Node.getPositionY ( )

Returns the Y position of the node on the graph.

§ isOccupied()

bool Model.Node.isOccupied ( )

Indicates whether the node is occupied by a unit.

Property Documentation

§ isObstacle

bool Model.Node.isObstacle
getset

Indicates whether a unit can stand inside the tile.

§ movabilityObstruction

int Model.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.Node.unitOnNode
getset

Gets and sets the unit that is on the node.


The documentation for this class was generated from the following file: