moagg.game.control.handler
Class ShootHandler

java.lang.Object
  extended by moagg.game.control.handler.ShootHandler
All Implemented Interfaces:
GameControlHandler

public class ShootHandler
extends java.lang.Object
implements GameControlHandler

Takes care of creating projectiles for objects that are currently shooting.


Constructor Summary
ShootHandler()
           
 
Method Summary
protected  ProjectileFactory createProjectileFactory(Weapon weapon)
           
protected  void handleShoot(ShooterObject shooter, InternalGameControl gameControl)
           
protected  void handleShoot(ShooterObject shooter, Weapon weapon, InternalGameControl gameControl)
           
 void update(InternalGameControl gameControl, long elapsedTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShootHandler

public ShootHandler()
Method Detail

update

public void update(InternalGameControl gameControl,
                   long elapsedTime)
Specified by:
update in interface GameControlHandler

handleShoot

protected void handleShoot(ShooterObject shooter,
                           InternalGameControl gameControl)

handleShoot

protected void handleShoot(ShooterObject shooter,
                           Weapon weapon,
                           InternalGameControl gameControl)

createProjectileFactory

protected ProjectileFactory createProjectileFactory(Weapon weapon)


Copyright © 2008. All Rights Reserved.