00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef _TURN_H
00028 #define _TURN_H
00029
00030 class Turn
00031 {
00032 public:
00033 Turn();
00034 Turn(int iNum, int iPlayerId,
00035 const PlayedRack& iPldRack, const Round& iRound);
00036 virtual ~Turn() {};
00037
00038 void setNum(int iNum) { m_num = iNum; }
00039 void setPlayer(int iPlayerId) { m_playerId = iPlayerId; }
00040 void setPlayedRack(const PlayedRack& iPldRack) { m_pldrack = iPldRack; }
00041 void setRound(const Round& iRound) { m_round = iRound; }
00042
00043 int getNum() const { return m_num; }
00044 int getPlayer() const { return m_playerId; }
00045 const PlayedRack& getPlayedRack() const { return m_pldrack; }
00046 const Round& getRound() const { return m_round; }
00047
00048 #if 0
00049 void operator=(const Turn &iOther);
00050 #endif
00051 string toString(bool iShowExtraSigns = false) const;
00052
00053 private:
00054 int m_num;
00055 int m_playerId;
00056 PlayedRack m_pldrack;
00057 Round m_round;
00058
00059 };
00060
00061 #endif
00062
00063
00064
00065
00066
00067
00068