|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object game.physics.CStaticShape game.physics.CDynamicShape game.physics.CColoredDynamicShape game.graphics.CMovingRect
public class CMovingRect
A colored rectangle bouncing on the game's display area's limits. The simplest form of CDynamicShape.
Field Summary |
---|
Fields inherited from class game.physics.CColoredDynamicShape |
---|
m_color |
Fields inherited from class game.physics.CDynamicShape |
---|
G, m_bApplyGravity, m_bBouceOnGameRect, m_v |
Fields inherited from class game.physics.CStaticShape |
---|
m_box, m_gameDisplay, m_isHidden |
Fields inherited from interface game.graphics.ICriticalObject |
---|
CRITICAL_VALUE |
Constructor Summary | |
---|---|
CMovingRect(IGameDisplay gameRect,
CBoundingBox boundingBox,
CVector2D speed,
java.awt.Color color)
|
Method Summary | |
---|---|
void |
draw(java.awt.Graphics g)
|
boolean |
isCritical()
|
Methods inherited from class game.physics.CDynamicShape |
---|
animate, bounceOnGameRect, cycle, getVelocity |
Methods inherited from class game.physics.CStaticShape |
---|
drawBox, getCenter, hide, intersect, isHidden, show |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface game.graphics.IGraphicObject |
---|
animate, cycle, getCenter, getVelocity, intersect |
Constructor Detail |
---|
public CMovingRect(IGameDisplay gameRect, CBoundingBox boundingBox, CVector2D speed, java.awt.Color color)
Method Detail |
---|
public void draw(java.awt.Graphics g)
draw
in interface IGraphicObject
public boolean isCritical()
isCritical
in interface ICriticalObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |