com.planeth.gtroids.obj
Class BlackHole

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.BlackHole
All Implemented Interfaces:
ITimeControllable

public class BlackHole
extends AbstractPhysicalObject

BlackHole with fixed size and strong gravitation

Author:
Andreas Grässer, gal@planet-h.com.
created May 14, 2005

Constructor Summary
BlackHole()
          Constructor for BlackHole.
 
Method Summary
protected  java.lang.String getExplodeSound()
          Returns the explodeSound for this object
 double getVolume()
          Returns the volume (mass) of the object
 void pause(boolean pauseState)
          Pauses/unpauses the object or components of the object, which have to be paused.
 
Methods inherited from class com.planeth.gtroids.obj.base.AbstractPhysicalObject
die, getCenterOfMass, getElast, getGamePanel, getGravit, getLastPos, getObjectFactory, getQuadrantCoords, getVel, hitWith, hitWithBomb, isAffectingGame, paint, setAffectingGame, setGamePanel, setGravit, setLifeTime, setQuadrantCoords, split, update
 
Methods inherited from class com.planeth.gtroids.obj.base.AbstractGameObject
cure, getAudioResource, getColorBackup, getStats, getTimerManager, initStats, isEnemy, isReadyToDie, kill, setColorBackup, setColorFixed, setReadyToDie
 
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

BlackHole

public BlackHole()
Constructor for BlackHole.

Method Detail

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
Specified by:
pause in class AbstractGameObject
See Also:
ITimeControllable.pause(boolean)

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

getVolume

public double getVolume()
Description copied from class: AbstractPhysicalObject
Returns the volume (mass) of the object

Overrides:
getVolume in class AbstractPhysicalObject
Returns:
Returns the volume (mass) of the object
See Also:
AbstractPhysicalObject.getVolume()