vooga.examples.networking.zombies.events
Class CreateZombieEvent
java.lang.Object
vooga.examples.networking.zombies.events.CreateZombieEvent
- All Implemented Interfaces:
- IEventHandler
public class CreateZombieEvent
- extends java.lang.Object
- implements IEventHandler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CreateZombieEvent
public CreateZombieEvent(PlayState current,
Shooter shooter,
IEventHandler endLevel,
IEventHandler addZombies)
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
createZombies
public void createZombies()
levelZombies
public int levelZombies()