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

Quick Search    Search Deep

marauroa.game
Class Test_RPScheduler.FakeRuleProcessor  view Test_RPScheduler.FakeRuleProcessor download Test_RPScheduler.FakeRuleProcessor.java

java.lang.Object
  extended bymarauroa.game.Test_RPScheduler.FakeRuleProcessor
All Implemented Interfaces:
RPRuleProcessor
Enclosing class:
Test_RPScheduler

private static class Test_RPScheduler.FakeRuleProcessor
extends java.lang.Object
implements RPRuleProcessor


Field Summary
(package private)  int i
           
 
Constructor Summary
Test_RPScheduler.FakeRuleProcessor()
           
 
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.
 int getActionsExecuted()
           
 void nextTurn()
          Notify it when a new turn happens
 void setContext(RPZone zone)
          Set the context where the actions are executed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

i

int i
Constructor Detail

Test_RPScheduler.FakeRuleProcessor

public Test_RPScheduler.FakeRuleProcessor()
Method Detail

setContext

public void setContext(RPZone zone)
Description copied from interface: RPRuleProcessor
Set the context where the actions are executed.

Specified by:
setContext in interface RPRuleProcessor

approvedActions

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

Specified by:
approvedActions in interface RPRuleProcessor

getActionsExecuted

public int getActionsExecuted()

execute

public RPAction.Status execute(RPObject.ID id,
                               RPAction action)
Description copied from interface: RPRuleProcessor
Execute an action in the name of a player.

Specified by:
execute in interface RPRuleProcessor

nextTurn

public void nextTurn()
Description copied from interface: RPRuleProcessor
Notify it when a new turn happens

Specified by:
nextTurn in interface RPRuleProcessor