tipgame.util
Class TimedSpriteKiller

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

public class TimedSpriteKiller
extends java.lang.Object
implements Alarm

Author:
Jam Jenkins

Field Summary
private  Sprite sprite
          the sprite to kill
 
Constructor Summary
TimedSpriteKiller(Sprite s)
          constructs the sprite killer
 
Method Summary
 void alarm()
          kills 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 kill

Constructor Detail

TimedSpriteKiller

public TimedSpriteKiller(Sprite s)
constructs the sprite killer

Parameters:
s - the sprite to eventually kill
Method Detail

alarm

public void alarm()
kills the sprite

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