rle.simple.board
Class PlayerHealer

java.lang.Object
  extended by rle.core.vm.PlugInBase
      extended by rle.simple.board.PlayerHealer
All Implemented Interfaces:
Cause, GameClockListener, PlugIn

public class PlayerHealer
extends PlugInBase
implements GameClockListener, Cause

Simple plugin that heals the player as time goes by. Note that this class is its own Cause.


Field Summary
 
Fields inherited from class rle.core.vm.PlugInBase
config, context, parameters
 
Constructor Summary
PlayerHealer()
           
 
Method Summary
 java.lang.String getCauseDescription()
          The internationalized description of this Cause.
 java.lang.Object getSource()
          The underlying Object that the Cause description refers to.
 void tick(GameClockEvent event)
           
 
Methods inherited from class rle.core.vm.PlugInBase
config, getContext, getParameters, paramMap, setConfig, setParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlayerHealer

public PlayerHealer()
Method Detail

tick

public void tick(GameClockEvent event)
Specified by:
tick in interface GameClockListener

getCauseDescription

public java.lang.String getCauseDescription()
Description copied from interface: Cause
The internationalized description of this Cause. This should be able to fit the basic sentence structure "Player Timmy, killed by [cause] on level 25."

Specified by:
getCauseDescription in interface Cause

getSource

public java.lang.Object getSource()
The underlying Object that the Cause description refers to.

Specified by:
getSource in interface Cause