/[eliot]/eliot/game/game.h
ViewVC logotype

Diff of /eliot/game/game.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.19 by ipkiss, Fri Nov 4 23:26:03 2005 UTC revision 1.20 by ipkiss, Sat Nov 5 15:48:59 2005 UTC
# Line 69  public: Line 69  public:
69          kJOKER      // Joker game          kJOKER      // Joker game
70      };      };
71    
     const Board& getBoard() const { return m_board; }  
     const Bag&   getBag()   const { return m_bag; }  
   
72      /**      /**
73       * Accessors for the variant of the game.       * Accessors for the variant of the game.
74       * The variant can be changed during a game without any problem       * The variant can be changed during a game without any problem
# Line 87  public: Line 84  public:
84      const Dictionary & getDic() const   { return *m_dic; }      const Dictionary & getDic() const   { return *m_dic; }
85      void setDic(const Dictionary &iDic) { m_dic = &iDic; }      void setDic(const Dictionary &iDic) { m_dic = &iDic; }
86    
87        const Board&  getBoard() const { return m_board; }
88        const Bag&    getBag()   const { return m_bag; }
89        const Player& getPlayer(int iIndex) const;
90    
91      /**      /**
92       * Saved games handling.       * Saved games handling.
93       *       *
# Line 143  public: Line 144  public:
144      virtual void addHumanPlayer();      virtual void addHumanPlayer();
145      // TODO: Ability to specify which kind of AI player is wanted      // TODO: Ability to specify which kind of AI player is wanted
146      virtual void addAIPlayer();      virtual void addAIPlayer();
     int  getPlayerPoints(int) const;  
147      string getPlayerRack(int, bool = false) const;      string getPlayerRack(int, bool = false) const;
148    
149      int  currPlayer() const     { return m_currPlayer; }      int  currPlayer() const     { return m_currPlayer; }
# Line 200  protected: Line 200  protected:
200      int helperSetRackRandom(int p, bool iCheck, set_rack_mode mode);      int helperSetRackRandom(int p, bool iCheck, set_rack_mode mode);
201      int helperSetRackManual(int p, bool iCheck, const string &iLetters);      int helperSetRackManual(int p, bool iCheck, const string &iLetters);
202    
     string formatCoords(const Round &iRound) const;  
     string formatPlayedRack(const PlayedRack &iRack,  
                             bool showExtraSigns = true) const;  
203      void prevPlayer();      void prevPlayer();
204      void nextPlayer();      void nextPlayer();
205      bool rackInBag(const Rack &iRack, const Bag &iBag) const;      bool rackInBag(const Rack &iRack, const Bag &iBag) const;

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26