17 |
/* along with this program; if not, write to the Free Software */ |
/* along with this program; if not, write to the Free Software */ |
18 |
/* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ |
/* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ |
19 |
|
|
|
/* $Id$ */ |
|
|
|
|
20 |
/** |
/** |
21 |
* \file coord.h |
* \file coord.h |
22 |
* \brief Game coordinates system |
* \brief Game coordinates system |
27 |
#ifndef _COORD_H |
#ifndef _COORD_H |
28 |
#define _COORD_H |
#define _COORD_H |
29 |
|
|
|
enum Tdirection {VERTICAL, HORIZONTAL}; |
|
|
typedef enum Tdirection Direction; |
|
|
|
|
30 |
class Coord |
class Coord |
31 |
{ |
{ |
32 |
public: |
public: |
33 |
|
|
34 |
|
enum Direction {VERTICAL, HORIZONTAL}; |
35 |
|
|
36 |
Coord(); |
Coord(); |
37 |
~Coord(); |
Coord(const std::string& iCoord); |
38 |
|
virtual ~Coord(); |
39 |
void setRow(int iRow); |
|
40 |
void setCol(int iCol); |
void setRow(int iRow); |
41 |
|
void setCol(int iCol); |
42 |
void setDir(Direction iDir); |
void setDir(Direction iDir); |
43 |
|
|
44 |
Direction getDir() const; |
Direction getDir() const; |
56 |
|
|
57 |
#endif |
#endif |
58 |
|
|
59 |
|
|
60 |
/// Local Variables: |
/// Local Variables: |
61 |
/// mode: hs-minor |
/// mode: hs-minor |
62 |
/// c-basic-offset: 4 |
/// c-basic-offset: 4 |