Location Functions

From theFarWilds
Jump to: navigation, search

A location object represents a particular hex on the playing map. Note that the TFW Coordinate System is transposed -- the x-axis is vertical and the y-axis is horizontal. Labeling starts from zero.


Location createLocation( int x, int y );


bool isAloft(); 
// false if an Aloft guy is grounded after melee

bool isValid();

int distance(Location);

int getX();
int getY();

Player getController();