com.planeth.gtroids.obj
Class Boss

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.base.AbstractTumblingObject
                      extended bycom.planeth.gtroids.obj.Boss
All Implemented Interfaces:
IGun, ITimeControllable

public class Boss
extends AbstractTumblingObject
implements IGun

Enemy Boss

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

Constructor Summary
Boss(int level)
          Constructor for Boss.
 
Method Summary
 void die()
          Initates the dead of the Object without any game relevant changes like updating healthPoints and updating players points
 void enableAlarm()
          Enables the boss' alarm
protected  java.lang.String getExplodeSound()
          Returns the explodeSound for this object
 Ship getShipInTractorBeam()
          Returns player ship if it's in the tractorBeam
 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.AbstractTumblingObject
move
 
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, 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, 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

Boss

public Boss(int level)
Constructor for Boss.

Parameters:
level - the level for the boss
Method Detail

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 AbstractTumblingObject
See Also:
AbstractAnimatedObject.update(double, double)

shoot

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

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

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()

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()

enableAlarm

public void enableAlarm()
Enables the boss' alarm


getExplodeSound

protected java.lang.String getExplodeSound()
Description copied from class: AbstractPhysicalObject
Returns the explodeSound for this object

Overrides:
getExplodeSound in class AbstractPhysicalObject
Returns:
Returns the explodeSound for this object
See Also:
AbstractPhysicalObject.getExplodeSound()

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)

getShipInTractorBeam

public Ship getShipInTractorBeam()
Returns player ship if it's in the tractorBeam

Returns:
Returns the shipInTractorBeam.