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 |
|
|
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); |