|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectsema.Event
sema.Element.ElementEvent
Mother class for the event of an element. It encapsulates an automatic verification of the death before executing the action, and uses only a delay to register itself (relative time rather than absolute date).
Event| Field Summary |
| Fields inherited from class sema.Event |
date |
| Constructor Summary | |
Element.ElementEvent(double relativeDate)
Constructs an event registered at the engine associated to the world of the element. |
|
| Method Summary | |
boolean |
execute()
The code of the event. |
protected void |
whatToDo()
The action to override in order to execute something. |
| Methods inherited from class sema.Event |
compareTo, delete |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Element.ElementEvent(double relativeDate)
relativeDate - the date of the event relative to the date of the register.| Method Detail |
public boolean execute()
execute in class Eventprotected void whatToDo()
Event
whatToDo in class Event
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||