#include <cboard.h>
Public Member Functions | |
Spot () | |
Constructor. | |
void | set (int xval, int yval) |
set the spot | |
int | getX () const |
Get X value. | |
int | getY () const |
Get Y value. | |
bool | isAllotted () const |
Check to see if spot has been set. |
This class represents a positon on a board. It is mostly used (and would probably only be useful) by the Cboard class methods to calculate a move. It provides easy read/write methods. Its primary use it to store (x, y) coordinates on the board, as well as the isAlloted() method to determine if the spot has been set or not.
|
Get X value.
|
|
Get Y value.
|
|
Check to see if spot has been set.
|
|
set the spot This method allows a client to set the x and y coordinated on the board.
|