com.croftsoft.apps.mars.model.seri
Class SeriBullet

java.lang.Object
  extended by com.croftsoft.apps.mars.model.seri.SeriModel
      extended by com.croftsoft.apps.mars.model.seri.SeriBullet
All Implemented Interfaces:
Bullet, BulletAccessor, Model, ModelAccessor, Serializable, Comparable

public final class SeriBullet
extends SeriModel
implements Bullet

A bullet.

Since:
2003-04-01
Version:
2003-04-15
See Also:
Serialized Form
Author:
David Wallace Croft

Constructor Summary
SeriBullet(World world, double originX, double originY, double heading)
           
 
Method Summary
 void fire(double originX, double originY, double heading)
           
 Shape getShape()
           
 double getZ()
           
 boolean isActive()
           
 boolean isUpdated()
           
 void prepare()
           
 void setCenter(double x, double y)
           
 void update(double timeDelta)
           
 
Methods inherited from class com.croftsoft.apps.mars.model.seri.SeriModel
compareTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SeriBullet

public SeriBullet(World world,
                  double originX,
                  double originY,
                  double heading)
Method Detail

isActive

public boolean isActive()
Specified by:
isActive in interface ModelAccessor

getShape

public Shape getShape()
Specified by:
getShape in interface ModelAccessor

isUpdated

public boolean isUpdated()
Specified by:
isUpdated in interface ModelAccessor

getZ

public double getZ()
Specified by:
getZ in interface ModelAccessor

prepare

public void prepare()
Specified by:
prepare in interface Model

update

public void update(double timeDelta)
Specified by:
update in interface Model

fire

public void fire(double originX,
                 double originY,
                 double heading)
Specified by:
fire in interface Bullet

setCenter

public void setCenter(double x,
                      double y)
Specified by:
setCenter in interface Model

CroftSoft Javadoc

CroftSoft Apps Javadoc (2008-09-28 21:15:07)