[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Eliot-dev] eliot/game turn.h turn.cpp
From: |
eliot-dev |
Subject: |
[Eliot-dev] eliot/game turn.h turn.cpp |
Date: |
Mon, 26 Dec 2005 19:17:49 +0000 |
CVSROOT: /cvsroot/eliot
Module name: eliot
Branch:
Changes by: Antoine Fraboulet <address@hidden> 05/12/26 19:17:49
Modified files:
game : turn.h turn.cpp
Log message:
- adding empty constructor for History
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/eliot/eliot/game/turn.h.diff?tr1=1.6&tr2=1.7&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/eliot/eliot/game/turn.cpp.diff?tr1=1.7&tr2=1.8&r1=text&r2=text
Patches:
Index: eliot/game/turn.cpp
diff -u eliot/game/turn.cpp:1.7 eliot/game/turn.cpp:1.8
--- eliot/game/turn.cpp:1.7 Mon Dec 26 15:53:37 2005
+++ eliot/game/turn.cpp Mon Dec 26 19:17:49 2005
@@ -30,23 +30,29 @@
#include "turn.h"
+Turn::Turn()
+{
+ m_num = 0;
+ m_player = 0;
+ m_pldrack = PlayedRack();
+ m_round = Round();
+}
+
Turn::Turn(int iNum, int iPlayerId,
const PlayedRack& iPldRack, const Round& iRound)
: m_num(iNum), m_playerId(iPlayerId), m_pldrack(iPldRack), m_round(iRound)
{
}
-
#if 0
void Turn::operator=(const Turn &iOther)
{
- num = iOther.num;
- pldrack = iOther.pldrack;
- round = iOther.round;
+ m_num = iOther.m_num;
+ m_pldrack = iOther.m_pldrack;
+ m_round = iOther.m_round;
}
#endif
-
string Turn::toString(bool iShowExtraSigns) const
{
string rs = "";
Index: eliot/game/turn.h
diff -u eliot/game/turn.h:1.6 eliot/game/turn.h:1.7
--- eliot/game/turn.h:1.6 Mon Dec 26 15:53:37 2005
+++ eliot/game/turn.h Mon Dec 26 19:17:49 2005
@@ -30,16 +30,15 @@
class Turn
{
public:
+ Turn();
Turn(int iNum, int iPlayerId,
const PlayedRack& iPldRack, const Round& iRound);
virtual ~Turn() {};
-#if 0
void setNum(int iNum) { m_num = iNum; }
void setPlayer(int iPlayerId) { m_playerId = iPlayerId; }
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_playerId; }