com.planeth.gtroids.obj.bonus
Class BonusPointsFactor

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.bonus.AbstractBonusItem
                          extended bycom.planeth.gtroids.obj.bonus.BonusPointsFactor
All Implemented Interfaces:
ITimeControllable

public class BonusPointsFactor
extends AbstractBonusItem

Points factor Bonus

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

Constructor Summary
BonusPointsFactor()
          Constructor for BonusCure.
 
Method Summary
protected  void applyBonus(Ship ship)
          Applies the Bonus to the passed ship
protected  void applyDamage()
          Applies the Damage
 void paint(java.awt.Graphics g)
          Paints the object into the passed Graphics
 
Methods inherited from class com.planeth.gtroids.obj.bonus.AbstractBonusItem
createBonusShape, die, getTransform, hitWith
 
Methods inherited from class com.planeth.gtroids.obj.base.AbstractTumblingObject
move, update
 
Methods inherited from class com.planeth.gtroids.obj.base.AbstractAnimatedObject
checkBorderJump, getCircumferentialVel, getLastPos, getRealTimeControl, getRotationVelDeg, getVel, isSpeedDependent, pause, setBorderJumper, setCircumferentialVel, setRotationVelDeg, setSpeedDependent, setVel, update
 
Methods inherited from class com.planeth.gtroids.obj.base.AbstractPhysicalObject
getCenterOfMass, getElast, getExplodeSound, getGamePanel, getGravit, getObjectFactory, getQuadrantCoords, getVolume, 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, setReadyToDie
 
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

BonusPointsFactor

public BonusPointsFactor()
Constructor for BonusCure.

Method Detail

paint

public void paint(java.awt.Graphics g)
Description copied from class: PaintableObject
Paints the object into the passed Graphics

Overrides:
paint in class AbstractAnimatedObject
See Also:
PaintableObject.paint(java.awt.Graphics)

applyBonus

protected void applyBonus(Ship ship)
Description copied from class: AbstractBonusItem
Applies the Bonus to the passed ship

Overrides:
applyBonus in class AbstractBonusItem
Parameters:
ship - to apply the bonus
See Also:
AbstractBonusItem.applyBonus(com.planeth.gtroids.obj.Ship)

applyDamage

protected void applyDamage()
Description copied from class: AbstractBonusItem
Applies the Damage

Overrides:
applyDamage in class AbstractBonusItem
See Also:
AbstractBonusItem.applyDamage()