org.vizzini.game.arcadegame
Class AbstractArcadeEnvironment

java.lang.Object
  extended by org.vizzini.game.AbstractEnvironment
      extended by org.vizzini.game.arcadegame.AbstractArcadeEnvironment
All Implemented Interfaces:
Serializable, Cloneable, IArcadeEnvironment, IEnvironment
Direct Known Subclasses:
Environment

public abstract class AbstractArcadeEnvironment
extends AbstractEnvironment
implements IArcadeEnvironment

Provides base functionality for arcade game environments in the game framework.

Since:
v0.1
Version:
v0.3
Author:
Jeffrey M. Thompson
See Also:
Serialized Form

Constructor Summary
AbstractArcadeEnvironment()
          Construct this object.
 
Method Summary
 void configure(Properties properties)
          Configure this environment.
 Dimension getDimension()
          Return the dimensions of the playing area.
protected  void setDimension(Dimension dimension)
          Set the dimensions of the playing area.
protected  void setDimension(int width, int height)
          Set the dimensions of the playing area.
 void undoAction(IAction action)
          Undo the given action.
 
Methods inherited from class org.vizzini.game.AbstractEnvironment
addStateListener, clone, copy, createInitialTokens, equals, get, getAdjudicator, getAgentCollection, getStateManager, getTeamCollection, getTokenCollection, getTokenCollectionClass, getTurnNumber, hashCode, incrementTurnNumber, isFiringStateChanges, open, performActions, removeStateListener, reset, setAdjudicator, setAgentCollection, setFiringStateChanges, setTokenCollectionClass, setTurnNumber, update
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.vizzini.game.IEnvironment
addStateListener, clone, copy, get, getAdjudicator, getAgentCollection, getTeamCollection, getTokenCollection, getTurnNumber, incrementTurnNumber, isFiringStateChanges, open, performAction, performActions, removeStateListener, reset, setAdjudicator, setAgentCollection, setFiringStateChanges, setTurnNumber, update
 

Constructor Detail

AbstractArcadeEnvironment

public AbstractArcadeEnvironment()
Construct this object.

Since:
v0.2
Method Detail

configure

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

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

getDimension

public Dimension getDimension()
Return the dimensions of the playing area.

Specified by:
getDimension in interface IArcadeEnvironment
Since:
v0.1

undoAction

public void undoAction(IAction action)
Undo the given action.

Specified by:
undoAction in interface IEnvironment
Parameters:
action - Action.
Since:
v0.1

setDimension

protected void setDimension(Dimension dimension)
Set the dimensions of the playing area.

Since:
v0.1

setDimension

protected void setDimension(int width,
                            int height)
Set the dimensions of the playing area.

Since:
v0.1


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02