Assignment Search Framework
|
Public Member Functions | |
MapLocation () | |
MapLocation (uint16_t x_loc, uint16_t y_loc) | |
virtual | ~MapLocation () |
Public Attributes | |
uint16_t | x |
The x coordinate of the state. More... | |
uint16_t | y |
The y coordinate of the state. More... | |
Defines a state for 2D map pathfinding. Each state is a location in the map given as a set of coordinates.
MapLocation::MapLocation | ( | ) |
Default constructor for a map location. Sets the coordinates to (0,0).
MapLocation::MapLocation | ( | uint16_t | x_loc, |
uint16_t | y_loc | ||
) |
Constructor for the map location that sets the coordinates to the given values.
x_loc | The x coordinate for the state. |
y_loc | The y coordinate for the state. |
|
virtual |
Destructor for the map location. Does nothing.
uint16_t MapLocation::x |
The x coordinate of the state.
uint16_t MapLocation::y |
The y coordinate of the state.