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

java.lang.Object
  extended by com.croftsoft.apps.mars.model.seri.SeriModel
      extended by com.croftsoft.apps.mars.model.seri.SeriAmmoDump
All Implemented Interfaces:
AmmoDump, AmmoDumpAccessor, Damageable, Model, ModelAccessor, Serializable, Comparable

public final class SeriAmmoDump
extends SeriModel
implements AmmoDump

An ammunition dump.

Since:
2003-03-30
Version:
2003-05-12
See Also:
Serialized Form
Author:
David Wallace Croft

Nested Class Summary
static class SeriAmmoDump.Shared
           
 
Constructor Summary
SeriAmmoDump(World world, double centerX, double centerY, double ammo, SeriAmmoDump.Shared shared)
           
 
Method Summary
 void addDamage(double damage)
           
 double getAmmo()
           
 Shape getExplosionShape()
           
 Shape getShape()
           
 double getZ()
           
 boolean isActive()
           
 boolean isExploding()
           
 boolean isUpdated()
           
 void prepare()
           
 void setAmmo(double ammo)
           
 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

SeriAmmoDump

public SeriAmmoDump(World world,
                    double centerX,
                    double centerY,
                    double ammo,
                    SeriAmmoDump.Shared shared)
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

setCenter

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

prepare

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

update

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

addDamage

public void addDamage(double damage)
Specified by:
addDamage in interface Damageable

getAmmo

public double getAmmo()
Specified by:
getAmmo in interface AmmoDumpAccessor

isExploding

public boolean isExploding()
Specified by:
isExploding in interface AmmoDumpAccessor

getExplosionShape

public Shape getExplosionShape()
Specified by:
getExplosionShape in interface AmmoDumpAccessor

setAmmo

public void setAmmo(double ammo)
Specified by:
setAmmo in interface AmmoDump

CroftSoft Javadoc

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