[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Eliot-dev] Changes to eliot/game/board.h
From: |
eliot-dev |
Subject: |
[Eliot-dev] Changes to eliot/game/board.h |
Date: |
Fri, 04 Nov 2005 18:26:04 -0500 |
Index: eliot/game/board.h
diff -u eliot/game/board.h:1.9 eliot/game/board.h:1.10
--- eliot/game/board.h:1.9 Fri Nov 4 20:00:06 2005
+++ eliot/game/board.h Fri Nov 4 23:26:03 2005
@@ -63,10 +63,29 @@
Board();
virtual ~Board() {}
+ /*************************
+ * Coordinates have to be BOARD_MIN <= int <= BOARD_MAX
+ *
+ * getChar returns an upper case letter for normal tiles and a
+ * lower case letter for jokers.
+ *
+ * getCharAttr tells the attributes of the tile
+ * 0 : normal played tile
+ * 1 : joker tile
+ * 2 : test tile for preview purpose
+ * Attributes can be combined with the or (|) operator
+ *************************/
+#define ATTR_NORMAL 0
+#define ATTR_JOKER 1
+#define ATTR_TEST 2
+
+ char getChar (int iRow, int iCol) const;
+ int getCharAttr(int iRow, int iCol) const;
+
Tile getTile(int iRow, int iCol) const;
bool isJoker(int iRow, int iCol) const;
bool isVacant(int iRow, int iCol) const;
- /*int score(Round);*/
+
void addRound(const Dictionary &iDic, const Round &iRound);
void removeRound(const Dictionary &iDic, const Round &iRound);
int checkRound(Round &iRound, bool iFirstTurn);