vooga.games.tronupdate.events
Class SetLevelEvent

java.lang.Object
  extended by vooga.games.tronupdate.events.SetLevelEvent
All Implemented Interfaces:
IEventHandler

public class SetLevelEvent
extends java.lang.Object
implements IEventHandler


Constructor Summary
SetLevelEvent(Game game, GameStateManager gm)
           
 
Method Summary
 void actionPerformed()
          User defines what to do after event has been triggered.
 int getLevel()
           
 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

SetLevelEvent

public SetLevelEvent(Game game,
                     GameStateManager gm)
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

getLevel

public int getLevel()

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