[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Eliot-dev] Changes to eliot/game/coord.h [antoine-1]
From: |
eliot-dev |
Subject: |
[Eliot-dev] Changes to eliot/game/coord.h [antoine-1] |
Date: |
Sun, 23 Oct 2005 16:58:47 -0400 |
Index: eliot/game/coord.h
diff -u eliot/game/coord.h:1.2.2.1 eliot/game/coord.h:1.2.2.2
--- eliot/game/coord.h:1.2.2.1 Sun Oct 23 17:16:24 2005
+++ eliot/game/coord.h Sun Oct 23 20:58:20 2005
@@ -17,8 +17,6 @@
/* along with this program; if not, write to the Free Software */
/* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-/* $Id: coord.h,v 1.2.2.1 2005/10/23 17:16:24 afrab Exp $ */
-
/**
* \file coord.h
* \brief Game coordinates system
@@ -29,22 +27,22 @@
#ifndef _COORD_H
#define _COORD_H
-enum Tdirection {VERTICAL, HORIZONTAL};
-typedef enum Tdirection Direction;
class Coord
{
public:
+ enum Direction {VERTICAL, HORIZONTAL};
+
Coord();
- Coord(std::string);
- ~Coord();
-
+ Coord(const std::string&);
+ virtual ~Coord();
+
int valid();
- void set(std::string);
- void setRow(int iRow);
- void setCol(int iCol);
+ void set(const std::string&);
+ void setRow(int iRow);
+ void setCol(int iCol);
void setDir(Direction iDir);
Direction getDir() const;
@@ -62,7 +60,7 @@
#endif
-
+
/// Local Variables:
/// mode: hs-minor
/// c-basic-offset: 4