vooga.games.jumper.events
Class DeathEvent

java.lang.Object
  extended by vooga.games.jumper.events.DeathEvent
All Implemented Interfaces:
IEventHandler

public class DeathEvent
extends java.lang.Object
implements IEventHandler

Event handler for the death of the main Doodle character.


Constructor Summary
DeathEvent(Blah dropThis, PlayGameState gamestate)
          Constructor for this death event.
 
Method Summary
 void actionPerformed()
          When this event returns true, the action performed is to end the game.
 boolean isTriggered()
          Returns true if the Doodle reaches the top of the screen.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeathEvent

public DeathEvent(Blah dropThis,
                  PlayGameState gamestate)
Constructor for this death event. Sets the game and the gamestate that this event applies to.

Parameters:
dropThis -
gamestate -
Method Detail

isTriggered

public boolean isTriggered()
Returns true if the Doodle reaches the top of the screen.

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

actionPerformed

public void actionPerformed()
When this event returns true, the action performed is to end the game.

Specified by:
actionPerformed in interface IEventHandler