org.vizzini.game.boardgame.action
Class PlaceActionGenerator

java.lang.Object
  extended by org.vizzini.game.action.AbstractActionGenerator
      extended by org.vizzini.game.boardgame.action.PlaceActionGenerator
All Implemented Interfaces:
IActionGenerator

public class PlaceActionGenerator
extends AbstractActionGenerator

Provides an action generator for place actions.

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

Constructor Summary
PlaceActionGenerator()
           
 
Method Summary
 Collection generate(IAgent agent, IEnvironment environment, IAdjudicator adjudicator)
          Generate the collection of legal actions using the given parameters.
 Class getTokenClass()
          Return the class of new token's to place.
 void setTokenClass(Class tokenClass)
          Set the class of new tokens to place.
 
Methods inherited from class org.vizzini.game.action.AbstractActionGenerator
configure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlaceActionGenerator

public PlaceActionGenerator()
Method Detail

generate

public Collection generate(IAgent agent,
                           IEnvironment environment,
                           IAdjudicator adjudicator)
Generate the collection of legal actions using the given parameters.

Parameters:
agent - Agent originating the actions.
environment - Environment.
adjudicator - Adjudicator.
Since:
v0.2

getTokenClass

public Class getTokenClass()
Return the class of new token's to place.

Since:
v0.2

setTokenClass

public void setTokenClass(Class tokenClass)
Set the class of new tokens to place.

Since:
v0.2


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