|
|||||||||
| 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.BehaviorLogic
com.threerings.tudey.server.logic.BehaviorLogic.Evaluating
public abstract static class BehaviorLogic.Evaluating
Superclass of the evaluating behaviors.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.threerings.tudey.server.logic.BehaviorLogic |
|---|
BehaviorLogic.Combined, BehaviorLogic.Evaluating, BehaviorLogic.Follow, BehaviorLogic.Idle, BehaviorLogic.PathCandidate, BehaviorLogic.Pathing, BehaviorLogic.Patrol, BehaviorLogic.Random, BehaviorLogic.Scripted, BehaviorLogic.Wander |
| Nested classes/interfaces inherited from class com.threerings.tudey.server.logic.Logic |
|---|
Logic.ShapeObserver |
| Field Summary | |
|---|---|
protected int |
_nextEvaluation
The time for which the next evaluation is scheduled. |
| Fields inherited from class com.threerings.tudey.server.logic.BehaviorLogic |
|---|
_agent, _config, MAX_FOLLOW_PATH_LENGTH |
| Fields inherited from class com.threerings.tudey.server.logic.Logic |
|---|
_scenemgr, _variables |
| Constructor Summary | |
|---|---|
BehaviorLogic.Evaluating()
|
|
| Method Summary | |
|---|---|
protected void |
advanceEvaluation()
Ensures that we will evaluate on the next tick. |
protected void |
evaluate()
Performs an evaluation. |
protected void |
postponeNextEvaluation()
Postpones the next evaluation until the next rescheduling. |
protected void |
scheduleNextEvaluation()
Schedules the next evaluation. |
void |
startup()
Starts up the behavior after initialization or suspension. |
void |
tick(int timestamp)
Ticks the behavior. |
void |
transfer(Logic source,
Map<Object,Object> refs)
Transfers state from the specified source logic. |
| Methods inherited from class com.threerings.tudey.server.logic.BehaviorLogic |
|---|
didInit, getCurrentTarget, getEntityKey, getRotation, getTranslation, init, isActive, penetratedEnvironment, reachedTargetRotation, shutdown, suspend |
| 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 int _nextEvaluation
| Constructor Detail |
|---|
public BehaviorLogic.Evaluating()
| Method Detail |
|---|
public void startup()
BehaviorLogic
startup in class BehaviorLogicpublic void tick(int timestamp)
BehaviorLogic
tick in class BehaviorLogic
public void transfer(Logic source,
Map<Object,Object> refs)
Logic
transfer in class Logicprotected void evaluate()
protected void scheduleNextEvaluation()
protected void postponeNextEvaluation()
protected void advanceEvaluation()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||