|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvooga.examples.networking.tictactoe.events.GameLostEvent
public class GameLostEvent
Detects and informs the PlayState when the player has lost (3 'O' pieces in a row.) No network API code.
Constructor Summary | |
---|---|
GameLostEvent(PlayField field,
PlayState playState)
Give GameLostEvent access to the main PlayField and the PlayState. |
Method Summary | |
---|---|
void |
actionPerformed()
If there are 3 'O' pieces in a row then tell the PlayState it lost. |
boolean |
isTriggered()
User defines the condition when the event will be triggered |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GameLostEvent(PlayField field, PlayState playState)
Method Detail |
---|
public void actionPerformed()
actionPerformed
in interface IEventHandler
public boolean isTriggered()
IEventHandler
isTriggered
in interface IEventHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |