gizmoball.gameworld.gameobjects
Class SimpleBallGun

java.lang.Object
  extended by gizmoball.gameworld.gameobjects.Gun
      extended by gizmoball.gameworld.gameobjects.SimpleBallGun

public class SimpleBallGun
extends Gun

A gun that shoots SimpleBalls, with a specified speed.


Field Summary
 
Fields inherited from class gizmoball.gameworld.gameobjects.Gun
ws
 
Constructor Summary
SimpleBallGun(GameWorldState ws, double timeBeweenShots, double speed, boolean killGood)
          Creates a gun that shoots SimpleBalls
 
Method Summary
 void doShoot(Vect3 position, Vect3 direction)
          The method that has to be overridden, that actually shoots out the shot.
 
Methods inherited from class gizmoball.gameworld.gameobjects.Gun
getRateOfFire, setRateOfFire, shoot, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleBallGun

public SimpleBallGun(GameWorldState ws,
                     double timeBeweenShots,
                     double speed,
                     boolean killGood)
Creates a gun that shoots SimpleBalls

Parameters:
ws - the WorldState that the balls should be added to
timeBeweenShots - the time, in seconds, betwen when one shot is fired and when the next can be fired.
speed - the speed that the balls should be shot at
Method Detail

doShoot

public void doShoot(Vect3 position,
                    Vect3 direction)
Description copied from class: Gun
The method that has to be overridden, that actually shoots out the shot.

Specified by:
doShoot in class Gun