Main Page | Class Hierarchy | Alphabetical List | Class List | Class Members | Related Pages

# COORDS Class Reference

List of all members.

## Public Member Functions
| COORDS (unsigned col, unsigned row)
void | row (unsigned r)
unsigned | row () const
void | col (unsigned c)
unsigned | col () const
void | move (int horz, int vert)
bool | operator== (COORDS coords) const
bool | operator!= (COORDS coords) const
void | swap (COORDS &coords)

## Detailed Description

Represents the coordinates of a cell

## Constructor & Destructor Documentation

COORDS | ( | unsigned | col,
|  | unsigned | row
| ) |

| c'tor

## Member Function Documentation

unsigned col | ( |  | ) | const

| Returns the column of this coordinates

void col | ( | unsigned | c | ) |

| Sets the column of this coordinates

void move | ( | int | horz,
|  | int | vert
| ) |

| Moves this coordinates

bool operator!= | ( | COORDS | coords | ) | const

| Compare two coordinates

bool operator== | ( | COORDS | coords | ) | const

| Compare two coordinates

unsigned row | ( |  | ) | const

| Returns the row of this coordinates

void row | ( | unsigned | r | ) |

| Sets the row of this coordinates

void swap | ( | COORDS & | coords | ) |

| Swaps two coordinates