/[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.8 by ipkiss, Fri Nov 4 20:00:06 2005 UTC revision 1.9 by ipkiss, Fri Nov 4 23:26:03 2005 UTC
# Line 104  Board::Board(): Line 104  Board::Board():
104  }  }
105    
106    
107    char Board::getChar(int iRow, int iCol) const
108    {
109        char letter = 0;
110        Tile tile = getTile(iRow, iCol);
111        if (!tile.isEmpty())
112        {
113            letter = tile.toChar();
114            if (isJoker(iRow, iCol))
115                letter = tolower(letter);
116        }
117        return letter;
118    }
119    
120    int Board::getCharAttr(int iRow, int iCol) const
121    {
122        int t = getTestChar(iRow, iCol);
123        int j = isJoker(iRow, iCol);
124        return  (t << 1) | j;
125    }
126    
127    
128  Tile Board::getTile(int iRow, int iCol) const  Tile Board::getTile(int iRow, int iCol) const
129  {  {
130      return m_tilesRow[iRow][iCol];      return m_tilesRow[iRow][iCol];

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

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