|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.game.AbstractEngine
org.vizzini.game.AsynchronousEngine
public class AsynchronousEngine
Provides functionality for an engine where the agent's actions occur at any time and any amount.
Constructor Summary | |
---|---|
AsynchronousEngine()
Construct this object. |
Method Summary | |
---|---|
void |
actionReceived(ActionReceivedEvent event)
Respond to action received events. |
protected Queue |
getQueue(IAgent agent)
Return the queue for the given agent, creating it if necessary. |
void |
reset()
Reset to the initial state. |
void |
run()
Perform the game loop activity. |
Methods inherited from class org.vizzini.game.AbstractEngine |
---|
addGameListener, configure, createGameThread, cycleSleep, getActionList, getCurrentAgent, getEnvironment, getGameThread, getMinCycleTime, isFiringGameChanges, isGameOver, isPaused, pause, removeGameListener, resume, setCurrentAgent, setEnvironment, setFiringGameChanges, setGameOver, setMinCycleTime, start, step |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AsynchronousEngine()
Method Detail |
---|
public void actionReceived(ActionReceivedEvent event)
actionReceived
in interface IActionReceivedListener
public void reset()
reset
in interface IEngine
reset
in class AbstractEngine
public void run()
run
in interface IEngine
protected Queue getQueue(IAgent agent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |