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

Diff of /eliot/game/tile.cpp

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

revision 1.4 by ipkiss, Sun Oct 23 14:53:43 2005 UTC revision 1.4.2.1 by afrab, Sun Oct 23 17:16:24 2005 UTC
# Line 68  const unsigned int Tiles_points[TILES_NU Line 68  const unsigned int Tiles_points[TILES_NU
68  /***************************  /***************************
69   ***************************/   ***************************/
70    
71  list<Tile> Tile::m_tilesList;  std::list<Tile> Tile::m_tilesList;
72  const Tile Tile::m_TheJoker(TILE_JOKER);  const Tile Tile::m_TheJoker(TILE_JOKER);
73  const Tile Tile::m_TheDummy(0);  const Tile Tile::m_TheDummy(0);
74    
# Line 136  unsigned int Tile::getPoints() const Line 136  unsigned int Tile::getPoints() const
136  }  }
137    
138    
139  const list<Tile>& Tile::getAllTiles()  const std::list<Tile>& Tile::getAllTiles()
140  {  {
141      if (Tile::m_tilesList.size() == 0)      if (Tile::m_tilesList.size() == 0)
142      {      {
# Line 198  bool Tile::operator ==(const Tile &iOthe Line 198  bool Tile::operator ==(const Tile &iOthe
198          return m_char == iOther.m_char;          return m_char == iOther.m_char;
199      }      }
200      return m_char == iOther.m_char;      return m_char == iOther.m_char;
 //     return (m_joker && iOther.m_joker && m_char == iOther.m_char) ||  
 //            (m_dummy && iOther.m_dummy) ||  
 //            (!m_dummy && !iOther.m_dummy  
 //             && !m_joker && !iOther.m_joker  
 //             && m_char == iOther.m_char);  
201  }  }
202    
203    

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.4.2.1

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