|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvooga.games.mariogame.events.LoseEvent
public class LoseEvent
Lose rule is enforced when Mario has 0 lives remaining.
Constructor Summary | |
---|---|
LoseEvent(MarioSprite mario,
Game game)
Constructor. |
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 LoseEvent(MarioSprite mario, Game game)
human
- Human class objectghost
- Ghost class objectMethod 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 |