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

Diff of /eliot/game/board.cpp

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

revision 1.7 by ipkiss, Sun Oct 23 14:53:43 2005 UTC revision 1.7.2.1 by afrab, Sun Oct 23 17:16:23 2005 UTC
# Line 118  bool Board::isJoker(int iRow, int iCol) Line 118  bool Board::isJoker(int iRow, int iCol)
118  }  }
119    
120    
121    /*********************************************************
122     *********************************************************/
123    
124    char Board::getChar(int iRow, int iCol) const
125    {
126        char letter = 0;
127        Tile tile = getTile(iRow, iCol);
128        if (!tile.isEmpty())
129        {
130            letter = tile.toChar();
131            if (isJoker(iRow, iCol))
132                letter = tolower(letter);
133        }
134        return letter;
135    }
136    
137    int Board::getCharAttr(int iRow, int iCol) const
138    {
139        int t = getTestChar(iRow, iCol);
140        int j = isJoker(iRow, iCol);
141        return  (t << 1) | j;
142    }
143    
144    
145  bool Board::isVacant(int iRow, int iCol) const  bool Board::isVacant(int iRow, int iCol) const
146  {  {
147      if (iRow < 1 || iRow > BOARD_DIM ||      if (iRow < 1 || iRow > BOARD_DIM ||

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.7.2.1

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