|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsoc.game.SOCOldLRStats
public class SOCOldLRStats
This keeps track of the old LR stats (Longest Road).
Used with SOCGame.putTempPiece(SOCPlayingPiece)
/ SOCGame.undoPutTempPiece(SOCPlayingPiece).
Tracks each player's LR length, and the player who
currently has the longest road.
| Field Summary | |
|---|---|
(package private) int[] |
lrLengths
|
(package private) SOCPlayer |
playerWithLR
|
| Constructor Summary | |
|---|---|
SOCOldLRStats(SOCGame ga)
Remembers the game's current LR player and each player's LR lengths. |
|
| Method Summary | |
|---|---|
void |
restoreOldStats(SOCGame ga)
Restores the old LR stats within game state, from this object's saved data, after removing a temporary piece. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
int[] lrLengths
SOCPlayer playerWithLR
| Constructor Detail |
|---|
public SOCOldLRStats(SOCGame ga)
ga - the game| Method Detail |
|---|
public void restoreOldStats(SOCGame ga)
ga - the game
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||