game.physics
Class CColoredDynamicShape

java.lang.Object
  extended by game.physics.CStaticShape
      extended by game.physics.CDynamicShape
          extended by game.physics.CColoredDynamicShape
Direct Known Subclasses:
CBouncingBall, CMovingRect, CSparkle

public abstract class CColoredDynamicShape
extends CDynamicShape

Extends CDynamicShape by adding color. Used in graphics package as a base class for rectangles and discs.

Author:
seb

Field Summary
protected  java.awt.Color 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
 
Constructor Summary
CColoredDynamicShape(IGameDisplay gameRect, CBoundingBox boundingBox, CVector2D velocity, java.awt.Color color)
           
 
Method Summary
 
Methods inherited from class game.physics.CDynamicShape
animate, bounceOnGameRect, cycle, getVelocity, wrapAtGameLimits
 
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
 

Field Detail

m_color

protected java.awt.Color m_color
Constructor Detail

CColoredDynamicShape

public CColoredDynamicShape(IGameDisplay gameRect,
                            CBoundingBox boundingBox,
                            CVector2D velocity,
                            java.awt.Color color)