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

Diff of /eliot/game/turn.cpp

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

revision 1.2 by ipkiss, Sun Oct 23 14:53:43 2005 UTC revision 1.2.2.1 by afrab, Sun Oct 23 17:16:24 2005 UTC
# Line 35  Line 35 
35  Turn::Turn()  Turn::Turn()
36  {  {
37      num     = 0;      num     = 0;
38        player  = 0;
39      pldrack = PlayedRack();      pldrack = PlayedRack();
40      round   = Round();      round   = Round();
41  }  }
# Line 80  int Turn::getPlayer() const Line 81  int Turn::getPlayer() const
81  }  }
82    
83    
84  PlayedRack Turn::getPlayedRack() const  const PlayedRack& Turn::getPlayedRack() const
85  {  {
86      return pldrack;      return pldrack;
87  }  }
88    
89    
90  Round Turn::getRound() const  const Round& Turn::getRound() const
91  {  {
92      return round;      return round;
93  }  }
# Line 101  Turn::operator=(const Turn &iOther) Line 102  Turn::operator=(const Turn &iOther)
102  }  }
103    
104    
105  string  std::string
106  Turn::toString(bool showExtraSigns) const  Turn::toString(bool showExtraSigns) const
107  {  {
108      string rs = "";      std::string rs = "";
109      if (showExtraSigns)  #ifdef DEBUG
110          {      char buff[10];
111              rs = ""; // TODO      sprintf(buff,"[n:%d,p:%d] ",num,player);
112          }      rs += std::string(buff);
113      rs = rs + pldrack.toString() + " " + round.toString();  #endif
114        rs += pldrack.toString(10,PlayedRack::RACK_EXTRA);
115        rs += round.toString();
116      return rs;      return rs;
117  }  }
118    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.2.2.1

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