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

Diff of /eliot/game/board.h

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

revision 1.9 by ipkiss, Fri Nov 4 20:00:06 2005 UTC revision 1.10 by ipkiss, Fri Nov 4 23:26:03 2005 UTC
# Line 63  public: Line 63  public:
63      Board();      Board();
64      virtual ~Board() {}      virtual ~Board() {}
65    
66        /*************************
67         * Coordinates have to be BOARD_MIN <= int <= BOARD_MAX
68         *
69         * getChar returns an upper case letter for normal tiles and a
70         * lower case letter for jokers.
71         *
72         * getCharAttr tells the attributes of the tile
73         *   0 : normal played tile
74         *   1 : joker tile
75         *   2 : test tile for preview purpose
76         * Attributes can be combined with the or (|) operator
77         *************************/
78    #define ATTR_NORMAL 0
79    #define ATTR_JOKER  1
80    #define ATTR_TEST   2
81    
82        char getChar    (int iRow, int iCol) const;
83        int  getCharAttr(int iRow, int iCol) const;
84    
85      Tile getTile(int iRow, int iCol) const;      Tile getTile(int iRow, int iCol) const;
86      bool isJoker(int iRow, int iCol) const;      bool isJoker(int iRow, int iCol) const;
87      bool isVacant(int iRow, int iCol) const;      bool isVacant(int iRow, int iCol) const;
88      /*int  score(Round);*/  
89      void addRound(const Dictionary &iDic, const Round &iRound);      void addRound(const Dictionary &iDic, const Round &iRound);
90      void removeRound(const Dictionary &iDic, const Round &iRound);      void removeRound(const Dictionary &iDic, const Round &iRound);
91      int checkRound(Round &iRound, bool iFirstTurn);      int checkRound(Round &iRound, bool iFirstTurn);

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

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