|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvooga.examples.networking.tictactoe.events.GameTiedEvent
public class GameTiedEvent
Detects and informs the PlayState when the game ends tied. No network API code.
Constructor Summary | |
---|---|
GameTiedEvent(PlayField field,
PlayState playState)
Give GameTiedEvent access to the main PlayField and the PlayState. |
Method Summary | |
---|---|
void |
actionPerformed()
If all 9 spots on the board are filled then tell the PlayState there's a tie. |
boolean |
isTriggered()
Check to see if all 9 spots on the board are filled. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GameTiedEvent(PlayField field, PlayState playState)
Method Detail |
---|
public void actionPerformed()
actionPerformed
in interface IEventHandler
public boolean isTriggered()
isTriggered
in interface IEventHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |