game.graphics
Interface IGraphicObject
- All Known Subinterfaces:
- ICriticalObject, IEphemereObject
- All Known Implementing Classes:
- CAnimatedSprite, CBouncingBall, CEphemereMessage, CEphemereText, CHighscoreTable, CMovingRect, CMovingText, COnscreenMessage, CScoreManager, CSparkle, CStaticSprite
public interface IGraphicObject
Interface needed to be inserted in a layer, and then animated and drawn to the screen.
- Author:
- sroccaserra
animate
void animate(float dt)
cycle
void cycle()
draw
void draw(java.awt.Graphics g)
intersect
boolean intersect(float x,
float y)
getCenter
CVector2D getCenter()
getVelocity
CVector2D getVelocity()