|
|||||||||||
| 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
The abstraction of a tumbling object
(object with excentric rotation)
| Constructor Summary | |
AbstractTumblingObject(Shape baseShape,
Vector2D vel,
double rotationVelDeg)
Constructor for AbstractTumblingObject. |
|
| Method Summary | |
void |
move(Vector2D movementVector)
Moves the object with the values of the passed vector. |
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.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 |
die, getCenterOfMass, getElast, getExplodeSound, 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, 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 AbstractTumblingObject(Shape baseShape,
Vector2D vel,
double rotationVelDeg)
baseShape - the baseShape of the objectvel - the velocity for the object in degreesrotationVelDeg - the rotationVel for the object in degrees| Method Detail |
protected void update(double timeFactor,
double speedFactor)
AbstractAnimatedObject
update in class AbstractAnimatedObjecttimeFactor - the timefactor which affects the stepsizespeedFactor - the speedfactor which affects the stepsizeAbstractAnimatedObject.update(double, double)public void move(Vector2D movementVector)
move in class PaintableObjectmovementVector - the movement to be donePaintableObject.move(com.planeth.common.math.Vector2D)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||