game.graphics.text
Class CEphemereText

java.lang.Object
  extended by game.physics.CStaticShape
      extended by game.physics.CDynamicShape
          extended by game.graphics.text.CMovingText
              extended by game.graphics.text.CEphemereText
All Implemented Interfaces:
IEphemereObject, IGraphicObject

public class CEphemereText
extends CMovingText
implements IEphemereObject

A CMovingText with a lifetime.

Author:
sroccaserra

Field Summary
(package private)  float m_lifetime
           
 
Fields inherited from class game.graphics.text.CMovingText
m_font, 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
CEphemereText(IGameDisplay gameRect, java.lang.String text, float x, float y, CVector2D v, float lifetime)
           
 
Method Summary
 void animate(float dt)
          Does nothing (static shapes don't move).
 boolean isDead()
           
 
Methods inherited from class game.graphics.text.CMovingText
draw
 
Methods inherited from class game.physics.CDynamicShape
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
cycle, draw, getCenter, getVelocity, intersect
 

Field Detail

m_lifetime

float m_lifetime
Constructor Detail

CEphemereText

public CEphemereText(IGameDisplay gameRect,
                     java.lang.String text,
                     float x,
                     float y,
                     CVector2D v,
                     float lifetime)
Method Detail

isDead

public final boolean isDead()
Specified by:
isDead in interface IEphemereObject

animate

public void animate(float dt)
Description copied from class: CStaticShape
Does nothing (static shapes don't move).

Specified by:
animate in interface IGraphicObject
Overrides:
animate in class CDynamicShape