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

Diff of /eliot/game/player.cpp

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

revision 1.8 by ipkiss, Sun Nov 6 14:53:15 2005 UTC revision 1.9 by ipkiss, Sun Nov 6 17:13:45 2005 UTC
# Line 29  Line 29 
29  #include "debug.h"  #include "debug.h"
30    
31    
32  Player::Player()  Player::Player(int iId)
33  {  {
34        m_id = iId;
35      m_score = 0;      m_score = 0;
36  }  }
37    
# Line 73  const Round & Player::getLastRound() con Line 74  const Round & Player::getLastRound() con
74   */   */
75  void Player::endTurn(const Round &iRound, int iTurn)  void Player::endTurn(const Round &iRound, int iTurn)
76  {  {
77      // FIXME: the number of the player is wrong here!      m_history.push_back(new Turn(iTurn, m_id, m_pldrack, iRound));
     m_history.push_back(new Turn(iTurn, iTurn, m_pldrack, iRound));  
78    
79      Rack rack;      Rack rack;
80      m_pldrack.getRack(rack);      m_pldrack.getRack(rack);

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