game.graphics.text
Class CEphemereMessage

java.lang.Object
  extended by game.physics.CStaticShape
      extended by game.graphics.text.COnscreenMessage
          extended by game.graphics.text.CEphemereMessage
All Implemented Interfaces:
IEphemereObject, IGraphicObject

public class CEphemereMessage
extends COnscreenMessage
implements IEphemereObject

A COnscreenMessage with a lifetime.

Author:
sroccaserra

Field Summary
protected  float m_lifetime
           
 
Fields inherited from class game.graphics.text.COnscreenMessage
DEFAULT_COLOR, DEFAULT_TYPE, m_sDelay, m_strText, m_type, PADDING, TYPE_BOTTOM_RIGHT, TYPE_CENTRED
 
Fields inherited from class game.physics.CStaticShape
m_box, m_gameDisplay, m_isHidden
 
Constructor Summary
CEphemereMessage(IGameDisplay gameDisplay, java.lang.String strText)
           
 
Method Summary
 void animate(float dt)
          Zoom and rotation are dealt with here.
 void draw(java.awt.Graphics g)
           
 boolean isDead()
           
 
Methods inherited from class game.graphics.text.COnscreenMessage
initImage, isShowing, setFrequency, setMaxRot, setMinZoom, setZoomAmplitude, show
 
Methods inherited from class game.physics.CStaticShape
cycle, drawBox, getCenter, getVelocity, 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, getCenter, getVelocity, intersect
 

Field Detail

m_lifetime

protected float m_lifetime
Constructor Detail

CEphemereMessage

public CEphemereMessage(IGameDisplay gameDisplay,
                        java.lang.String strText)
Method Detail

animate

public final void animate(float dt)
Description copied from class: COnscreenMessage
Zoom and rotation are dealt with here.

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

draw

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

isDead

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