[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Eliot-dev] Changes to eliot/game/player.cpp
From: |
eliot-dev |
Subject: |
[Eliot-dev] Changes to eliot/game/player.cpp |
Date: |
Sun, 06 Nov 2005 12:13:49 -0500 |
Index: eliot/game/player.cpp
diff -u eliot/game/player.cpp:1.8 eliot/game/player.cpp:1.9
--- eliot/game/player.cpp:1.8 Sun Nov 6 14:53:15 2005
+++ eliot/game/player.cpp Sun Nov 6 17:13:45 2005
@@ -29,8 +29,9 @@
#include "debug.h"
-Player::Player()
+Player::Player(int iId)
{
+ m_id = iId;
m_score = 0;
}
@@ -73,8 +74,7 @@
*/
void Player::endTurn(const Round &iRound, int iTurn)
{
- // FIXME: the number of the player is wrong here!
- m_history.push_back(new Turn(iTurn, iTurn, m_pldrack, iRound));
+ m_history.push_back(new Turn(iTurn, m_id, m_pldrack, iRound));
Rack rack;
m_pldrack.getRack(rack);