|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvooga.games.doodlejump.events.DoodleDiedEvent
public class DoodleDiedEvent
The DoodleDiedEvent implement IEventHandler and activates myGameOverState when Doodle Dies
Constructor Summary | |
---|---|
DoodleDiedEvent(DoodleSprite doodle,
Game game,
GameState gameOverState)
|
Method Summary | |
---|---|
void |
actionPerformed()
User defines what to do after event has been triggered. |
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 DoodleDiedEvent(DoodleSprite doodle, Game game, GameState gameOverState)
Method Detail |
---|
public void actionPerformed()
IEventHandler
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 |