tipgame.util
Class TimedSpriteEnabler

java.lang.Object
  extended by tipgame.util.TimedSpriteEnabler
All Implemented Interfaces:
Alarm

public class TimedSpriteEnabler
extends java.lang.Object
implements Alarm

enables a sprite after a given period of time

Author:
Jam Jenkins

Field Summary
private  Sprite sprite
          the sprite to enable
 
Constructor Summary
TimedSpriteEnabler(Sprite s)
          constructs the sprite enabler
 
Method Summary
 void alarm()
          enables the sprite
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sprite

private Sprite sprite
the sprite to enable

Constructor Detail

TimedSpriteEnabler

public TimedSpriteEnabler(Sprite s)
constructs the sprite enabler

Parameters:
s - the sprite to enable after a delay
Method Detail

alarm

public void alarm()
enables the sprite

Specified by:
alarm in interface Alarm
See Also:
Alarm.alarm()