vooga.games.grandius.events
Class FiringEvent

java.lang.Object
  extended by 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


Field Summary
protected  Blah grandius
           
 
Constructor Summary
FiringEvent(Blah grandius, Player player, PlayState playState)
           
 
Method Summary
 void actionPerformed()
          User defines what to do after event has been triggered.
 SpriteGroup getGroup(java.lang.String groupName)
           
 double getXLocation()
           
 double getYLocation()
           
 boolean isTriggered()
          User defines the condition when the event will be triggered
 void playExplosionSound(java.lang.String soundName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

grandius

protected Blah grandius
Constructor Detail

FiringEvent

public FiringEvent(Blah grandius,
                   Player player,
                   PlayState playState)
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

getXLocation

public double getXLocation()

getYLocation

public double getYLocation()

playExplosionSound

public void playExplosionSound(java.lang.String soundName)

getGroup

public SpriteGroup getGroup(java.lang.String groupName)