com.threerings.tudey.server.logic
Class ExpressionLogic.Constant

java.lang.Object
  extended by com.threerings.util.ShallowObject
      extended by com.threerings.tudey.server.logic.Logic
          extended by com.threerings.tudey.server.logic.ExpressionLogic
              extended by com.threerings.tudey.server.logic.ExpressionLogic.Constant
Enclosing class:
ExpressionLogic

public static class ExpressionLogic.Constant
extends ExpressionLogic

Evaluates a constant expression.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.tudey.server.logic.ExpressionLogic
ExpressionLogic.Add, ExpressionLogic.And, ExpressionLogic.BinaryOperation, ExpressionLogic.Constant, ExpressionLogic.Decrement, ExpressionLogic.Divide, ExpressionLogic.Equals, ExpressionLogic.Greater, ExpressionLogic.GreaterEquals, ExpressionLogic.Increment, ExpressionLogic.Less, ExpressionLogic.LessEquals, ExpressionLogic.Multiply, ExpressionLogic.Negate, ExpressionLogic.Not, ExpressionLogic.NumTargets, ExpressionLogic.Or, ExpressionLogic.Parsed, ExpressionLogic.Previous, ExpressionLogic.Reference, ExpressionLogic.Remainder, ExpressionLogic.Subtract, ExpressionLogic.UnaryOperation, ExpressionLogic.Xor
 
Nested classes/interfaces inherited from class com.threerings.tudey.server.logic.Logic
Logic.ShapeObserver
 
Field Summary
protected  Object _value
          The parsed value.
 
Fields inherited from class com.threerings.tudey.server.logic.ExpressionLogic
_config, _source
 
Fields inherited from class com.threerings.tudey.server.logic.Logic
_scenemgr, _variables
 
Constructor Summary
ExpressionLogic.Constant()
           
 
Method Summary
protected  void didInit()
          Override to perform custom initialization.
 Object evaluate(Logic activator, Object previous)
          Evaluates the expression.
 
Methods inherited from class com.threerings.tudey.server.logic.ExpressionLogic
coerceToBoolean, coerceToDouble, getEntityKey, getRotation, getTranslation, init, isActive, parseValue
 
Methods inherited from class com.threerings.tudey.server.logic.Logic
addShapeObserver, createAction, createCondition, createExpression, createHandler, createRegion, createTarget, getModel, getPatrolPath, getSceneManager, getShape, getTags, getTransform, getTransform, getVariable, init, isDefaultEntrance, isVisible, removeShapeObserver, request, resolveTarget, setVariable, signal, transfer
 
Methods inherited from class com.threerings.util.ShallowObject
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_value

protected Object _value
The parsed value.

Constructor Detail

ExpressionLogic.Constant

public ExpressionLogic.Constant()
Method Detail

evaluate

public Object evaluate(Logic activator,
                       Object previous)
Description copied from class: ExpressionLogic
Evaluates the expression.

Specified by:
evaluate in class ExpressionLogic

didInit

protected void didInit()
Description copied from class: ExpressionLogic
Override to perform custom initialization.

Overrides:
didInit in class ExpressionLogic