[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Eliot-dev] Changes to eliot/game/turn.h [antoine-1]
From: |
eliot-dev |
Subject: |
[Eliot-dev] Changes to eliot/game/turn.h [antoine-1] |
Date: |
Sun, 23 Oct 2005 16:59:21 -0400 |
Index: eliot/game/turn.h
diff -u eliot/game/turn.h:1.2.2.1 eliot/game/turn.h:1.2.2.2
--- eliot/game/turn.h:1.2.2.1 Sun Oct 23 17:16:24 2005
+++ eliot/game/turn.h Sun Oct 23 20:58:20 2005
@@ -17,11 +17,9 @@
/* along with this program; if not, write to the Free Software */
/* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-/* $Id: turn.h,v 1.2.2.1 2005/10/23 17:16:24 afrab Exp $ */
-
/**
* \file turn.h
- * \brief Game turn (= id + pldrack + round)
+ * \brief Game turn (= id + pldrack + round)
* \author Antoine Fraboulet
* \date 2005
*/
@@ -35,33 +33,33 @@
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;
- const PlayedRack& getPlayedRack() const;
- const Round& getRound() const;
+ Turn();
+ virtual ~Turn();
- void operator=(const Turn &iOther);
- std::string toString(bool showExtraSigns = false) const;
+ void setNum(int);
+ void setPlayer(int);
+ void setPlayedRack(const PlayedRack&);
+ void setRound(const Round&);
+
+ int getNum() const;
+ int getPlayer() const;
+ const PlayedRack& getPlayedRack() const;
+ const Round& getRound() const;
+
+ void operator=(const Turn &iOther);
+ std::string toString(bool showExtraSigns = false) const;
+
+ private:
+ int m_num;
+ int m_player;
+ PlayedRack m_pldrack;
+ Round m_round;
};
#endif
-
+
/// Local Variables:
/// mode: hs-minor
/// c-basic-offset: 4