turn.h

Go to the documentation of this file.
00001 /* Eliot                                                                     */
00002 /* Copyright (C) 1999  Antoine Fraboulet                                     */
00003 /*                                                                           */
00004 /* This file is part of Eliot.                                               */
00005 /*                                                                           */
00006 /* Eliot is free software; you can redistribute it and/or modify             */
00007 /* it under the terms of the GNU General Public License as published by      */
00008 /* the Free Software Foundation; either version 2 of the License, or         */
00009 /* (at your option) any later version.                                       */
00010 /*                                                                           */
00011 /* Eliot is distributed in the hope that it will be useful,                  */
00012 /* but WITHOUT ANY WARRANTY; without even the implied warranty of            */
00013 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             */
00014 /* GNU General Public License for more details.                              */
00015 /*                                                                           */
00016 /* You should have received a copy of the GNU General Public License         */
00017 /* along with this program; if not, write to the Free Software               */
00018 /* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
00019 
00020 /**
00021  *  \file   turn.h
00022  *  \brief  Game turn (= id + pldrack + round)
00023  *  \author Antoine Fraboulet
00024  *  \date   2005
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 /// Local Variables:
00064 /// mode: c++
00065 /// mode: hs-minor
00066 /// c-basic-offset: 4
00067 /// indent-tabs-mode: nil
00068 /// End:

Generated on Thu Dec 29 02:01:14 2005 for Eliot by  doxygen 1.4.5