org.vizzini.game
Class SynchronousEngine

java.lang.Object
  extended by org.vizzini.game.AbstractEngine
      extended by org.vizzini.game.SynchronousEngine
All Implemented Interfaces:
IEngine
Direct Known Subclasses:
Engine

public class SynchronousEngine
extends AbstractEngine

Provides functionality for an engine where agents take turns.

Since:
v0.1
Version:
v0.3
Author:
Jeffrey M. Thompson

Constructor Summary
SynchronousEngine()
           
 
Method Summary
 void configure(Properties properties)
          Configure this engine.
 void run()
          Perform the game loop actions.
 void setActionCount(int actionCount)
          Set the action count.
 
Methods inherited from class org.vizzini.game.AbstractEngine
addGameListener, createGameThread, cycleSleep, getActionList, getCurrentAgent, getEnvironment, getGameThread, getMinCycleTime, isFiringGameChanges, isGameOver, isPaused, pause, removeGameListener, reset, 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

SynchronousEngine

public SynchronousEngine()
Method Detail

configure

public void configure(Properties properties)
               throws InstantiationException,
                      IllegalAccessException
Configure this engine.

Specified by:
configure in interface IEngine
Overrides:
configure in class AbstractEngine
Parameters:
properties - Source of configuration information.
Throws:
InstantiationException
IllegalAccessException
Since:
v0.1

run

public void run()
Perform the game loop actions.

Since:
v0.1

setActionCount

public void setActionCount(int actionCount)
Set the action count.

Since:
v0.1


Copyright © 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02