vooga.games.doodlejump.events
Class GameWonEvent

java.lang.Object
  extended by vooga.games.doodlejump.events.GameWonEvent
All Implemented Interfaces:
IEventHandler

public class GameWonEvent
extends java.lang.Object
implements IEventHandler

The GameWonEvent implements IEventHandler and describes what happens when a Game is Won.


Constructor Summary
GameWonEvent(DoodleSprite doodle, Game game, GameState gameWonState)
           
 
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

GameWonEvent

public GameWonEvent(DoodleSprite doodle,
                    Game game,
                    GameState gameWonState)
Method Detail

actionPerformed

public void actionPerformed()
Description copied from interface: IEventHandler
User defines what to do after event has been triggered.

Specified by:
actionPerformed in interface IEventHandler

isTriggered

public boolean isTriggered()
Description copied from interface: IEventHandler
User defines the condition when the event will be triggered

Specified by:
isTriggered in interface IEventHandler
Returns:
true iff the fire condition is satisfied