[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Eliot-dev] Changes to eliot/game/turn.h
From: |
eliot-dev |
Subject: |
[Eliot-dev] Changes to eliot/game/turn.h |
Date: |
Sat, 05 Nov 2005 18:22:45 -0500 |
Index: eliot/game/turn.h
diff -u eliot/game/turn.h:1.3 eliot/game/turn.h:1.4
--- eliot/game/turn.h:1.3 Fri Nov 4 20:00:06 2005
+++ eliot/game/turn.h Sat Nov 5 23:22:42 2005
@@ -29,33 +29,38 @@
class Turn
{
- protected:
- int num;
- int player;
- PlayedRack pldrack;
- Round round;
-
- public:
- Turn();
- ~Turn();
-
- void setNum(int);
- void setPlayer(int);
- void setPlayedRack(const PlayedRack&);
- void setRound(const Round&);
-
- int getNum() const;
- int getPlayer() const;
- PlayedRack getPlayedRack() const;
- Round getRound() const;
+public:
+// Turn();
+ Turn(int iNum, int iPlayer,
+ const PlayedRack& iPldRack, const Round& iRound);
+ virtual ~Turn() {};
+
+#if 0
+ void setNum(int iNum) { m_num = iNum; }
+ void setPlayer(int iPldRack) { m_player = iPldRack; }
+ void setPlayedRack(const PlayedRack& iPldRack) { m_pldrack = iPldRack; }
+ void setRound(const Round& iRound) { m_round = iRound; }
+#endif
+
+ int getNum() const { return m_num; }
+ int getPlayer() const { return m_player; }
+ const PlayedRack& getPlayedRack() const { return m_pldrack; }
+ const Round& getRound() const { return m_round; }
+
+// void operator=(const Turn &iOther);
+ string toString(bool iShowExtraSigns = false) const;
+
+private:
+ int m_num;
+ int m_player;
+ PlayedRack m_pldrack;
+ Round m_round;
- void operator=(const Turn &iOther);
- string toString(bool showExtraSigns = false) const;
};
#endif
-
+
/// Local Variables:
/// mode: hs-minor
/// c-basic-offset: 4