game.graphics.text
Class CMovingText

java.lang.Object
  extended by game.physics.CStaticShape
      extended by game.physics.CDynamicShape
          extended by game.graphics.text.CMovingText
All Implemented Interfaces:
IGraphicObject
Direct Known Subclasses:
CEphemereText

public class CMovingText
extends CDynamicShape
implements IGraphicObject

Base class for displaying a moving Text.

Author:
sroccaserra

Field Summary
(package private)  CBitmapFont m_font
           
(package private)  java.lang.String m_strText
           
 
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
CMovingText(IGameDisplay gameDisplay, java.lang.String strText, float x, float y, CVector2D v)
           
 
Method Summary
 void draw(java.awt.Graphics g)
           
 
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
 

Field Detail

m_strText

java.lang.String m_strText

m_font

CBitmapFont m_font
Constructor Detail

CMovingText

public CMovingText(IGameDisplay gameDisplay,
                   java.lang.String strText,
                   float x,
                   float y,
                   CVector2D v)
Method Detail

draw

public void draw(java.awt.Graphics g)
Specified by:
draw in interface IGraphicObject