com.planeth.gtroids.obj.bonus
Class BonusShield

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

public class BonusShield
extends AbstractBonusItem

Shield Bonus

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

Constructor Summary
BonusShield()
          Constructor for BonusCure.
 
Method Summary
protected  void applyBonus(Ship ship)
          Applies the Bonus to the passed ship
protected  void applyDamage()
          Applies the Damage
static java.awt.Color createShieldColor()
          Returns the shield Color
 
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, paint, 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

BonusShield

public BonusShield()
Constructor for BonusCure.

Method Detail

createShieldColor

public static java.awt.Color createShieldColor()
Returns the shield Color

Returns:
Returns the shield Color

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