class Location
Describes a zero-based character coordinate on a console screen.
Global Functions
int Compare (const var, const var) | Compares two locations. |
Constructors
Location () | Constructs a new instance with HOME (0,0) coordinates. |
Location (const int, const int) | Constructs a new instance from x and y coordinates. |
Location (const Location) | Copy-constructs a new instance. |
Properties
int X () | Returns the current X coordinate of the location. |
X (const int) | Sets the X coordinate of the location. |
int Y () | Returns the current Y coordinate of the location. |
Y (const int) | Sets the Y coordinate of the location. |
Reference
function int Compare (const var v1, const var v2) |
Compares two locations. This can be used as a comparator delegate for the array::sort() and list::sort() functions. |
method Location () |
Constructs a new instance with HOME (0,0) coordinates. |
method Location (const int x, const int y) |
Constructs a new instance from x and y coordinates. |
method Location (const Location src) |
Copy-constructs a new instance. |
accessor int X () |
Returns the current X coordinate of the location. |
accessor X (const int) |
Sets the X coordinate of the location. |
accessor int Y () |
Returns the current Y coordinate of the location. |
accessor Y (const int) |
Sets the Y coordinate of the location. |