Assignment Search Framework
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
MapLocation Class Reference

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...
 

Detailed Description

Defines a state for 2D map pathfinding. Each state is a location in the map given as a set of coordinates.

Constructor & Destructor Documentation

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.

Parameters
x_locThe x coordinate for the state.
y_locThe y coordinate for the state.
MapLocation::~MapLocation ( )
virtual

Destructor for the map location. Does nothing.

Member Data Documentation

uint16_t MapLocation::x

The x coordinate of the state.

uint16_t MapLocation::y

The y coordinate of the state.


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