org.starhope.appius.game.npc.plebeian
Class PlebeianExpression

java.lang.Object
  extended by org.starhope.appius.game.npc.plebeian.PlebeianExpression

public class PlebeianExpression
extends Object

WRITEME: Document this type.

Author:
brpocock@star-hope.org

Nested Class Summary
private  class PlebeianExpression.HackSetToActionRunner
          WRITEME: Document this type.
 
Field Summary
private  PlebeianScript myOutcome
          WRITEME: Document this brpocock@star-hope.org
private  String myState
          WRITEME: Document this brpocock@star-hope.org
private  PlebeianTestClause myTest
          WRITEME: Document this brpocock@star-hope.org
private  AbstractUser myUser
          the user owning this script (for “Myself” and “Here” references)
 
Constructor Summary
PlebeianExpression(String testState, PlebeianTestClause test, PlebeianScript outcome, AbstractUser user)
          construct a new Plebeian script expression
 
Method Summary
 Queue<Runnable> accept(Action a)
          WRITEME: Document this method brpocock@star-hope.org
 String getState()
          WRITEME: Document this method brpocock@star-hope.org
 ActionHandlerInterface handler(ScriptRunner scriptRunner)
          WRITEME: Document this method brpocock@star-hope.org
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

myOutcome

private final PlebeianScript myOutcome
WRITEME: Document this brpocock@star-hope.org


myState

private final String myState
WRITEME: Document this brpocock@star-hope.org


myTest

private final PlebeianTestClause myTest
WRITEME: Document this brpocock@star-hope.org


myUser

private final AbstractUser myUser
the user owning this script (for “Myself” and “Here” references)

Constructor Detail

PlebeianExpression

public PlebeianExpression(String testState,
                          PlebeianTestClause test,
                          PlebeianScript outcome,
                          AbstractUser user)
construct a new Plebeian script expression

Parameters:
testState - the state in which the script could be run
test - the condition in which the script would be run
outcome - the script to run if the condition is met in the correct state
user - the victim of the script
Method Detail

accept

public Queue<Runnable> accept(Action a)
WRITEME: Document this method brpocock@star-hope.org

Parameters:
a - WRITEME
Returns:
WRITEME

getState

public String getState()
WRITEME: Document this method brpocock@star-hope.org

Returns:
WRITEME

handler

public ActionHandlerInterface handler(ScriptRunner scriptRunner)
WRITEME: Document this method brpocock@star-hope.org

Parameters:
scriptRunner - WRITEME
Returns:
WRITEME

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()