|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.planeth.gtroids.obj.base.PaintableObject
com.planeth.gtroids.obj.base.AbstractGameObject
com.planeth.gtroids.obj.base.AbstractPhysicalObject
com.planeth.gtroids.obj.base.AbstractAnimatedObject
com.planeth.gtroids.obj.base.AbstractTumblingObject
com.planeth.gtroids.obj.bonus.AbstractBonusItem
Abstract base of a Bonus item
| Constructor Summary | |
AbstractBonusItem(Shape baseShape)
Constructor for AbstractBonusItem. |
|
| Method Summary | |
protected void |
applyBonus(Ship ship)
Applies the Bonus to the passed ship |
protected void |
applyDamage()
Applies the Damage |
protected static Shape |
createBonusShape(java.awt.Color color)
Creates a BonusShape with the passed color |
void |
die()
Initates the dead of the Object without any game relevant changes like updating healthPoints and updating players points |
protected Transform |
getTransform()
Returns the transform. |
void |
hitWith(AbstractGameObject abstractGameObject)
Hits this object with the passed AbstractGameObject |
| 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 |
public AbstractBonusItem(Shape baseShape)
baseShape - the baseShape of the object| Method Detail |
protected static Shape createBonusShape(java.awt.Color color)
color - the desired color
protected void applyBonus(Ship ship)
ship - to apply the bonusprotected void applyDamage()
public void hitWith(AbstractGameObject abstractGameObject)
AbstractGameObject
hitWith in class AbstractPhysicalObjectAbstractGameObject.hitWith(com.planeth.gtroids.obj.base.AbstractGameObject)public void die()
AbstractGameObject
die in class AbstractPhysicalObjectAbstractGameObject.die()protected Transform getTransform()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||