universum.bi
Interface Entity

All Known Subinterfaces:
Being

public interface Entity

Everything in the world should implement this interface.


Method Summary
 Event makeTurn(BeingInterface bi)
          Make this entity's turn, returned value is an event describing action this being is planning to perform, see EventKind for possible event types.
 void processEvent(BeingInterface bi, Event e)
          Handle an event, we pass BeingInterface, as it supersedes EntityInterface
 

Method Detail

processEvent

void processEvent(BeingInterface bi,
                  Event e)
Handle an event, we pass BeingInterface, as it supersedes EntityInterface


makeTurn

Event makeTurn(BeingInterface bi)
Make this entity's turn, returned value is an event describing action this being is planning to perform, see EventKind for possible event types. Note that only after all entities completed turn (or killed if timed out), planned action is actually commited. Also not that this function shouldn't be too heavyweight, otherwise being can be killed by watchdog in engine.

Returns:
event to perform
See Also:
EventKind