vooga.games.towerdefense.events
Class ShootEvent

java.lang.Object
  extended by vooga.games.towerdefense.events.ShootEvent
All Implemented Interfaces:
IEventHandler

public class ShootEvent
extends java.lang.Object
implements IEventHandler


Constructor Summary
ShootEvent()
           
 
Method Summary
 void actionPerformed()
          User defines what to do after event has been triggered.
 void addTower(ShootingTower tower)
           
 boolean isTriggered()
          User defines the condition when the event will be triggered
 void setHitEvent(EnemyHitEvent enemyHit, SpriteGroup shotGroup)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShootEvent

public ShootEvent()
Method Detail

setHitEvent

public void setHitEvent(EnemyHitEvent enemyHit,
                        SpriteGroup shotGroup)

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

addTower

public void addTower(ShootingTower tower)

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