Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

marauroa.game
Interface RPRuleProcessor  view RPRuleProcessor download RPRuleProcessor.java

All Known Implementing Classes:
MarauroaRPRuleProcessor, Test_RPScheduler.FakeRuleProcessor

public interface RPRuleProcessor

Interface for the class that is in charge of executing actions. Implement it to personalize the game


Method Summary
 void approvedActions(RPObject.ID id, RPActionList actionList)
          Pass the whole list of actions so that it can approve or deny the actions in it.
 RPAction.Status execute(RPObject.ID id, RPAction action)
          Execute an action in the name of a player.
 void nextTurn()
          Notify it when a new turn happens
 void setContext(RPZone zone)
          Set the context where the actions are executed.
 

Method Detail

setContext

public void setContext(RPZone zone)
Set the context where the actions are executed.


approvedActions

public void approvedActions(RPObject.ID id,
                            RPActionList actionList)
Pass the whole list of actions so that it can approve or deny the actions in it.


execute

public RPAction.Status execute(RPObject.ID id,
                               RPAction action)
Execute an action in the name of a player.


nextTurn

public void nextTurn()
Notify it when a new turn happens