com.planeth.gtroids.obj
Class PatrolShip

java.lang.Object
  extended bycom.planeth.gtroids.obj.base.PaintableObject
      extended bycom.planeth.gtroids.obj.base.AbstractGameObject
          extended bycom.planeth.gtroids.obj.base.AbstractPhysicalObject
              extended bycom.planeth.gtroids.obj.base.AbstractAnimatedObject
                  extended bycom.planeth.gtroids.obj.PatrolShip
All Implemented Interfaces:
IGun, ITimeControllable

public class PatrolShip
extends AbstractAnimatedObject
implements IGun

Enemy Patrol Ship

Author:
Andreas Grässer, gal@planet-h.com.
created 30.11.2005

Constructor Summary
PatrolShip()
          Constructor for PatrolShip.
 
Method Summary
 void die()
          Initates the dead of the Object without any game relevant changes like updating healthPoints and updating players points
 void pause(boolean pauseState)
          Pauses/unpauses the object or components of the object, which have to be paused.
 void setReadyToDie()
          Sets the object ready to get deleted
 void shoot()
          Fires a shot
protected  void update(double timeFactor, double speedFactor)
          Does one time and speed dependent update step for the Object
 
Methods inherited from class com.planeth.gtroids.obj.base.AbstractAnimatedObject
checkBorderJump, getCircumferentialVel, getLastPos, getRealTimeControl, getRotationVelDeg, getVel, isSpeedDependent, paint, setBorderJumper, setCircumferentialVel, setRotationVelDeg, setSpeedDependent, setVel, update
 
Methods inherited from class com.planeth.gtroids.obj.base.AbstractPhysicalObject
getCenterOfMass, getElast, getExplodeSound, getGamePanel, getGravit, getObjectFactory, getQuadrantCoords, getVolume, hitWith, hitWithBomb, isAffectingGame, setAffectingGame, setGamePanel, setGravit, setLifeTime, setQuadrantCoords, split
 
Methods inherited from class com.planeth.gtroids.obj.base.AbstractGameObject
cure, getAudioResource, getColorBackup, getStats, getTimerManager, initStats, isEnemy, isReadyToDie, kill, setColorBackup, setColorFixed
 
Methods inherited from class com.planeth.gtroids.obj.base.PaintableObject
addShape, explodeBaseShape, getAvgDiameter, getAvgVector, getBaseColor, getBaseVertexes, getBounds, getMaxRadius, getNrOfVertexes, getOrientation, getPos, move, paintAtPos, randomizeBaseShape, rotate, setBaseColor, splitBaseShape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatrolShip

public PatrolShip()
Constructor for PatrolShip.

Method Detail

die

public void die()
Description copied from class: AbstractGameObject
Initates the dead of the Object without any game relevant changes like updating healthPoints and updating players points

Overrides:
die in class AbstractPhysicalObject
See Also:
AbstractGameObject.die()

pause

public void pause(boolean pauseState)
Description copied from class: AbstractGameObject
Pauses/unpauses the object or components of the object, which have to be paused.

Specified by:
pause in interface ITimeControllable
Overrides:
pause in class AbstractAnimatedObject
See Also:
ITimeControllable.pause(boolean)

shoot

public void shoot()
Description copied from interface: IGun
Fires a shot

Specified by:
shoot in interface IGun
See Also:
IGun.shoot()

setReadyToDie

public void setReadyToDie()
Description copied from class: AbstractGameObject
Sets the object ready to get deleted

Overrides:
setReadyToDie in class AbstractGameObject
See Also:
AbstractGameObject.setReadyToDie()

update

protected void update(double timeFactor,
                      double speedFactor)
Description copied from class: AbstractAnimatedObject
Does one time and speed dependent update step for the Object

Overrides:
update in class AbstractAnimatedObject
Parameters:
timeFactor - the timefactor which affects the stepsize
speedFactor - the speedfactor which affects the stepsize
See Also:
AbstractAnimatedObject.update(double, double)