public class GameActionLog
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
private class |
GameActionLog.GameAction |
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<GameActionLog.GameAction> |
actions |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
GameActionLog() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAction(int i)
Get the action text at the specified log entry
|
int |
getPlayerIndex(int i)
Gets the player index at the specified log entry
|
int |
hashCode() |
void |
logAction(int playerID,
java.lang.String action)
Logs an action the game Action log
|
int |
size()
Get the size of the log
|
private static final long serialVersionUID
private java.util.List<GameActionLog.GameAction> actions
public void logAction(int playerID,
java.lang.String action)
playerID - action - public int size()
public int getPlayerIndex(int i)
i - the index of the log entrypublic java.lang.String getAction(int i)
i - the index of the log entrypublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object