|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectheurgame.event.RoundRobinIterator
| Field Summary | |
protected int |
currentRound
|
protected PlayerToken |
currentToken
|
protected java.util.Vector |
latestTokens
|
protected java.util.Vector |
mylisteners
|
protected java.util.Vector |
normalLog
|
protected java.util.ListIterator |
playerHelper
|
protected java.util.Vector |
playerTokens
|
protected int |
totalRounds
|
protected java.util.Vector |
urgentLog
|
| Constructor Summary | |
RoundRobinIterator()
|
|
| Method Summary | |
void |
addTurnListener(TurnListener t)
Adds a Turn Listener to be notified of changes |
java.util.List |
getEntries()
This is the normal method for adding information to the log. |
java.lang.String |
getLogName()
Usually a particular LogWriter is going to send more than one message to the log during the life of a program. |
boolean |
hasMore()
|
protected void |
logState(java.lang.String shortMessage)
|
void |
next()
|
void |
removeAllTurnListeners()
|
void |
removeTurnListener(TurnListener t)
Removes a Turn Listener |
void |
setup(int totalRounds,
java.util.Vector pTokens)
|
void |
updateActiveTokens(java.util.Vector newTokens)
|
java.util.List |
urgentEntries()
Normally logs are stored in a FIFO manner. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.Vector mylisteners
protected java.util.Vector normalLog
protected java.util.Vector urgentLog
protected java.util.Vector playerTokens
protected int currentRound
protected int totalRounds
protected java.util.ListIterator playerHelper
protected PlayerToken currentToken
protected java.util.Vector latestTokens
| Constructor Detail |
public RoundRobinIterator()
| Method Detail |
public void setup(int totalRounds,
java.util.Vector pTokens)
public void addTurnListener(TurnListener t)
t - to be addedpublic void removeTurnListener(TurnListener t)
t - to be removedpublic void removeAllTurnListeners()
public void next()
public boolean hasMore()
public void updateActiveTokens(java.util.Vector newTokens)
protected void logState(java.lang.String shortMessage)
public java.lang.String getLogName()
LogWriter
getLogName in interface LogWriterLogWriter.getLogName()public java.util.List getEntries()
LogWriter
getEntries in interface LogWriterLogWriter.getEntries()public java.util.List urgentEntries()
LogWriter
urgentEntries in interface LogWriterLogWriter.urgentEntries()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||