game
Class PeriodicText

java.lang.Object
  extended by game.PeriodicText
All Implemented Interfaces:
Animated

public class PeriodicText
extends java.lang.Object
implements Animated


Constructor Summary
PeriodicText(java.lang.String message, int period)
           
PeriodicText(java.lang.String message, int period, int maxOccurences)
          Set up a periodic message
 
Method Summary
 void die()
          C'est finis.
 boolean isDone()
          Is the object done being animated?
 boolean tick(int deltaTms)
          Advance time by the specified amount.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PeriodicText

public PeriodicText(java.lang.String message,
                    int period,
                    int maxOccurences)
Set up a periodic message

Parameters:
message - The message to be displayed
period - The period in milliseconds

PeriodicText

public PeriodicText(java.lang.String message,
                    int period)
Method Detail

die

public void die()
Description copied from interface: Animated
C'est finis.

Specified by:
die in interface Animated

isDone

public boolean isDone()
Description copied from interface: Animated
Is the object done being animated?

Specified by:
isDone in interface Animated
Returns:
true if the object no longer should move

tick

public boolean tick(int deltaTms)
Description copied from interface: Animated
Advance time by the specified amount.

Specified by:
tick in interface Animated
Parameters:
deltaTms - time tick in milliseconds
Returns:
whether there is still more life left in the object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object