com.croftsoft.apps.mars.model.seri
Class SeriTank
java.lang.Object
   com.croftsoft.apps.mars.model.seri.SeriModel
com.croftsoft.apps.mars.model.seri.SeriModel
       com.croftsoft.apps.mars.model.seri.SeriTank
com.croftsoft.apps.mars.model.seri.SeriTank
- All Implemented Interfaces: 
- TankConsole, Damageable, Impassable, Model, ModelAccessor, Tank, TankAccessor, SpaceTester, Serializable, Comparable
- public final class SeriTank 
- extends SeriModel- implements Tank
The default tank model implementation.
- Since:
- 2003-03-20
- Version:
- 2003-04-29
- See Also:
- Serialized Form
- Author:
- David Wallace Croft
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
SeriTank
public SeriTank(World world,
                double centerX,
                double centerY,
                Color color)
initialize
public void initialize(double centerX,
                       double centerY)
- 
- Specified by:
- initializein interface- Tank
 
- 
 
isActive
public boolean isActive()
- 
- Specified by:
- isActivein interface- ModelAccessor
 
- 
 
getShape
public Shape getShape()
- 
- Specified by:
- getShapein interface- TankConsole
- Specified by:
- getShapein interface- ModelAccessor
 
- 
 
isUpdated
public boolean isUpdated()
- 
- Specified by:
- isUpdatedin interface- ModelAccessor
 
- 
 
getZ
public double getZ()
- 
- Specified by:
- getZin interface- ModelAccessor
 
- 
 
setCenter
public void setCenter(double x,
                      double y)
- 
- Specified by:
- setCenterin interface- Model
 
- 
 
prepare
public void prepare()
- 
- Specified by:
- preparein interface- Model
 
- 
 
update
public void update(double timeDelta)
- 
- Specified by:
- updatein interface- Model
 
- 
 
addDamage
public void addDamage(double newDamage)
- 
- Specified by:
- addDamagein interface- Damageable
 
- 
 
getAmmo
public int getAmmo()
- 
- Specified by:
- getAmmoin interface- TankConsole
- Specified by:
- getAmmoin interface- TankAccessor
 
- 
 
getBodyHeading
public double getBodyHeading()
- 
- Specified by:
- getBodyHeadingin interface- TankConsole
- Specified by:
- getBodyHeadingin interface- TankAccessor
 
- 
 
getBodyRotationSpeed
public double getBodyRotationSpeed()
- 
- Specified by:
- getBodyRotationSpeedin interface- TankConsole
 
- 
 
getColor
public Color getColor()
- 
- Specified by:
- getColorin interface- TankAccessor
 
- 
 
getDamage
public double getDamage()
- 
- Specified by:
- getDamagein interface- TankAccessor
 
- 
 
isDryFiring
public boolean isDryFiring()
- 
- Specified by:
- isDryFiringin interface- TankAccessor
 
- 
 
isFiring
public boolean isFiring()
- 
- Specified by:
- isFiringin interface- TankAccessor
 
- 
 
getRadius
public double getRadius()
- 
- Specified by:
- getRadiusin interface- TankAccessor
 
- 
 
isSparking
public boolean isSparking()
- 
- Specified by:
- isSparkingin interface- TankAccessor
 
- 
 
getTankOperator
public TankOperator getTankOperator()
- 
- Specified by:
- getTankOperatorin interface- Tank
 
- 
 
getTankSpeed
public double getTankSpeed()
- 
- Specified by:
- getTankSpeedin interface- TankConsole
 
- 
 
getTurretHeading
public double getTurretHeading()
- 
- Specified by:
- getTurretHeadingin interface- TankConsole
- Specified by:
- getTurretHeadingin interface- TankAccessor
 
- 
 
setAmmo
public void setAmmo(int ammo)
- 
 
- 
 
setTankOperator
public void setTankOperator(TankOperator tankOperator)
- 
- Specified by:
- setTankOperatorin interface- Tank
 
- 
 
getClosestAmmoDumpCenter
public PointXY getClosestAmmoDumpCenter()
- 
- Specified by:
- getClosestAmmoDumpCenterin interface- TankConsole
 
- 
 
getClosestEnemyTankCenter
public PointXY getClosestEnemyTankCenter()
- 
- Specified by:
- getClosestEnemyTankCenterin interface- TankConsole
 
- 
 
isSpaceAvailable
public boolean isSpaceAvailable(PointXY center)
- 
- Specified by:
- isSpaceAvailablein interface- SpaceTester
 
- 
 
go
public void go(PointXY destination)
- 
- Specified by:
- goin interface- TankConsole
 
- 
 
fire
public void fire()
- 
- Specified by:
- firein interface- TankConsole
 
- 
 
rotateTurret
public void rotateTurret(PointXY targetPointXY)
- 
- Specified by:
- rotateTurretin interface- TankConsole
 
- 
 
CroftSoft Apps Javadoc                      (2008-09-28 21:15:07)