vooga.games.zombieland.events
Class LevelEndEvent

java.lang.Object
  extended by vooga.games.zombieland.events.LevelEndEvent
All Implemented Interfaces:
IEventHandler

public class LevelEndEvent
extends java.lang.Object
implements IEventHandler


Constructor Summary
LevelEndEvent(Shooter player, PlayState currentState, IEventHandler addzombies, AddRandomItemEvent additems)
           
 
Method Summary
 void actionPerformed()
          User defines what to do after event has been triggered.
 void createZombies()
           
 boolean isTriggered()
          User defines the condition when the event will be triggered
 int levelZombies()
           
 void updateDeaths(int deaths)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LevelEndEvent

public LevelEndEvent(Shooter player,
                     PlayState currentState,
                     IEventHandler addzombies,
                     AddRandomItemEvent additems)
Method Detail

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

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

updateDeaths

public void updateDeaths(int deaths)

createZombies

public void createZombies()

levelZombies

public int levelZombies()