[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Eliot-dev] Changes to eliot/game/coord.h
From: |
eliot-dev |
Subject: |
[Eliot-dev] Changes to eliot/game/coord.h |
Date: |
Fri, 04 Nov 2005 18:26:05 -0500 |
Index: eliot/game/coord.h
diff -u eliot/game/coord.h:1.3 eliot/game/coord.h:1.4
--- eliot/game/coord.h:1.3 Fri Nov 4 20:00:06 2005
+++ eliot/game/coord.h Fri Nov 4 23:26:03 2005
@@ -27,6 +27,8 @@
#ifndef _COORD_H
#define _COORD_H
+using std::string;
+
class Coord
{
public:
@@ -34,7 +36,7 @@
enum Direction {VERTICAL, HORIZONTAL};
Coord();
- Coord(const std::string& iCoord);
+ Coord(const string &iStr);
virtual ~Coord();
void setRow(int iRow);
@@ -46,9 +48,10 @@
int getCol() const;
void operator=(const Coord &iOther);
- std::string toString() const;
+ void setFromString(const string &iStr);
+ string toString() const;
- private:
+private:
Direction m_dir;
int m_row, m_col;