vooga.games.grandius.events
Class FiringEvent
java.lang.Object
vooga.games.grandius.events.FiringEvent
- All Implemented Interfaces:
- IEventHandler
- Direct Known Subclasses:
- FireBlackHoleEvent, FireHorizontalEvent, FireMissileEvent, FireVerticalEvent
public class FiringEvent
- extends java.lang.Object
- implements IEventHandler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
grandius
protected Blah grandius
FiringEvent
public FiringEvent(Blah grandius,
Player player,
PlayState playState)
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
getXLocation
public double getXLocation()
getYLocation
public double getYLocation()
playExplosionSound
public void playExplosionSound(java.lang.String soundName)
getGroup
public SpriteGroup getGroup(java.lang.String groupName)