de.adom.jade.kernel
Interface Actor

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
Being, DefaultActor, NPC, PC

public interface Actor
extends java.io.Serializable

An actor is an abstract JADE concept for anything that can happen at a predetermined point in time. This simulates both one-time events (like exploding magical bombs), repetetitive events (like a log floating downstream) or intelligent beings (like monsters or the PC).


Method Summary
 void act()
          Executes an action at a predetermined point in time.
 long getActionPoint()
          Returns the point in time when this event is going to happen.
 boolean isValid()
          Determines whether this action still is going to happen when the time has come.
 

Method Detail

act

void act()
Executes an action at a predetermined point in time.


getActionPoint

long getActionPoint()
Returns the point in time when this event is going to happen.

Returns:
the point in time when this action happens

isValid

boolean isValid()
Determines whether this action still is going to happen when the time has come. Actions no longer might be necessary because e.g. the acting monster already has been killed.

Returns:
a boolean flag determining whether the action still is valid