|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.util.ShallowObject
com.threerings.tudey.server.logic.Logic
com.threerings.tudey.server.logic.ActionLogic
com.threerings.tudey.server.logic.ActionLogic.Conditional
public static class ActionLogic.Conditional
Handles a conditional action.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.threerings.tudey.server.logic.Logic |
|---|
Logic.ShapeObserver |
| Field Summary | |
|---|---|
protected ActionLogic |
_action
The action to take if the condition is satisfied. |
protected ConditionLogic |
_condition
The condition to evaluate. |
protected ActionLogic |
_elseAction
The action to take if the condition is not satisfied. |
| Fields inherited from class com.threerings.tudey.server.logic.ActionLogic |
|---|
_config, _source, _targets |
| Fields inherited from class com.threerings.tudey.server.logic.Logic |
|---|
_scenemgr, _variables |
| Constructor Summary | |
|---|---|
ActionLogic.Conditional()
|
|
| Method Summary | |
|---|---|
protected void |
didInit()
Override to perform custom initialization. |
boolean |
execute(int timestamp,
Logic activator)
Executes the action. |
boolean |
shouldExecute(Logic activator)
Provides a hint as to whether this action should be executed. |
void |
transfer(Logic source,
Map<Object,Object> refs)
Transfers state from the specified source logic. |
protected void |
wasRemoved()
Override to perform custom cleanup. |
| Methods inherited from class com.threerings.tudey.server.logic.ActionLogic |
|---|
getEntityKey, getRotation, getTranslation, init, isActive, removed |
| 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 |
| 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 |
|---|
protected ConditionLogic _condition
protected ActionLogic _action
protected ActionLogic _elseAction
| Constructor Detail |
|---|
public ActionLogic.Conditional()
| Method Detail |
|---|
public boolean shouldExecute(Logic activator)
ActionLogic
shouldExecute in class ActionLogic
public boolean execute(int timestamp,
Logic activator)
ActionLogic
execute in class ActionLogicactivator - the entity that triggered the action.
public void transfer(Logic source,
Map<Object,Object> refs)
Logic
transfer in class Logicprotected void didInit()
ActionLogic
didInit in class ActionLogicprotected void wasRemoved()
ActionLogic
wasRemoved in class ActionLogic
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||