[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Eliot-dev] eliot/game history.h history.cpp
From: |
eliot-dev |
Subject: |
[Eliot-dev] eliot/game history.h history.cpp |
Date: |
Mon, 26 Dec 2005 22:57:44 +0000 |
CVSROOT: /cvsroot/eliot
Module name: eliot
Branch:
Changes by: Antoine Fraboulet <address@hidden> 05/12/26 22:57:44
Modified files:
game : history.h history.cpp
Log message:
- comment update
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/eliot/eliot/game/history.h.diff?tr1=1.5&tr2=1.6&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/eliot/eliot/game/history.cpp.diff?tr1=1.5&tr2=1.6&r1=text&r2=text
Patches:
Index: eliot/game/history.cpp
diff -u eliot/game/history.cpp:1.5 eliot/game/history.cpp:1.6
--- eliot/game/history.cpp:1.5 Mon Dec 26 19:19:42 2005
+++ eliot/game/history.cpp Mon Dec 26 22:57:44 2005
@@ -90,7 +90,11 @@
return *(m_history[n]);
}
-
+/*
+ * This function increments the number of racks, and fills the new rack
+ * with the unplayed tiles from the previous one.
+ * 03 sept 2000 : We have to sort the tiles according to the new rules
+ */
void History::playRound(int player, int turn, const Round& round)
{
Rack rack;
Index: eliot/game/history.h
diff -u eliot/game/history.h:1.5 eliot/game/history.h:1.6
--- eliot/game/history.h:1.5 Mon Dec 26 19:19:42 2005
+++ eliot/game/history.h Mon Dec 26 22:57:44 2005
@@ -40,7 +40,9 @@
* - one for each of the players
*
* A History is never empty (getSize() can be used as the is the current turn
- * number for the complete game history). The top of the history is an empty
+ * number for the complete game history).
+ *
+ * The top of the history is an empty
* Turn until it has been filled and game is up to a new round.
*
* getCurrentRack() can/should be used to store the current played rack.