|
|||||||||||
| 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
The abstraction of an animated object
| Constructor Summary | |
AbstractAnimatedObject(Shape baseShape)
Constructor for AbstractAnimatedObject. |
|
| Method Summary | |
protected void |
checkBorderJump()
Moves the object, if it's going out of the GamePanel to the opposite side of the panel. |
double |
getCircumferentialVel(Vector2D point,
int direction)
Returns the circumferencial velocity on the desired side (direction = north, east, south, west) at the desired vector (point). |
protected Vector2D |
getLastPos()
Returns the pos at last step |
protected RealTimeControl |
getRealTimeControl()
Returns the realTimeControl. |
protected double |
getRotationVelDeg()
Returns the rotationVel in degrees |
Vector2D |
getVel()
Returns the vel of the Object. |
protected boolean |
isSpeedDependent()
Returns true, if the object is speed dependent. |
void |
paint(java.awt.Graphics g)
Paints the object into the passed Graphics |
void |
pause(boolean pauseState)
Pauses/unpauses the object or components of the object, which have to be paused. |
protected void |
setBorderJumper(boolean borderJumper)
If set to true, the object jumps through the borders. |
void |
setCircumferentialVel(double circumferentialVel,
Vector2D point,
int direction)
Sets the circumferencial velocity on the desired side (direction = north, east, south, west) at the desired vector (point). |
void |
setRotationVelDeg(double rotationVelDeg)
Sets the rotationVel in degrees |
void |
setSpeedDependent(boolean speedDependent)
If set to true, the object is speed dependent. |
void |
setVel(Vector2D vel)
Sets the vel of the Object. |
void |
update()
Does one update step for the Object |
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.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, 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 |
public AbstractAnimatedObject(Shape baseShape)
baseShape - the baseShape of the object| Method Detail |
public void pause(boolean pauseState)
AbstractGameObject
pause in interface ITimeControllablepause in class AbstractGameObjectITimeControllable.pause(boolean)
public double getCircumferentialVel(Vector2D point,
int direction)
point - the vector, on which the circumfercencial vel should be takendirection - the direction (side), on which the circumfercencial vel should be taken
public void setCircumferentialVel(double circumferentialVel,
Vector2D point,
int direction)
circumferentialVel - the circumferentialVel to setpoint - the vector, on which the circumfercencial vel should be takendirection - the direction (side), on which the circumfercencial vel should be takenprotected void checkBorderJump()
public void paint(java.awt.Graphics g)
PaintableObject
paint in class AbstractPhysicalObjectPaintableObject.paint(java.awt.Graphics)public void update()
AbstractGameObject
update in class AbstractPhysicalObjectAbstractGameObject.update()
protected void update(double timeFactor,
double speedFactor)
timeFactor - the timefactor which affects the stepsizespeedFactor - the speedfactor which affects the stepsizepublic Vector2D getVel()
getVel in class AbstractPhysicalObjectpublic void setVel(Vector2D vel)
vel - The vel to set.protected double getRotationVelDeg()
public void setRotationVelDeg(double rotationVelDeg)
rotationVelDeg - The rotateSpeed to set (degrees).protected RealTimeControl getRealTimeControl()
protected Vector2D getLastPos()
getLastPos in class AbstractPhysicalObjectprotected boolean isSpeedDependent()
public void setSpeedDependent(boolean speedDependent)
speedDependent - true = speed dependent, false = speed independentprotected void setBorderJumper(boolean borderJumper)
borderJumper - true for borderJumper, false for borderCollider
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||