|
|||||||||
| 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
com.threerings.tudey.server.logic.BehaviorLogic.Random
public static class BehaviorLogic.Random
Handles the random behavior.
| 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 BehaviorLogic |
_active
The active behavior. |
protected BehaviorLogic[] |
_behaviors
The component behaviors. |
protected float[] |
_weights
The behavior weights. |
| Fields inherited from class com.threerings.tudey.server.logic.BehaviorLogic.Evaluating |
|---|
_nextEvaluation |
| 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.Random()
|
|
| Method Summary | |
|---|---|
protected void |
didInit()
Override to perform custom initialization. |
protected void |
evaluate()
Performs an evaluation. |
Logic |
getCurrentTarget()
Returns the currently targeted logic, if any. |
void |
penetratedEnvironment(Vector2f penetration)
Notifies the behavior that the agent has penetrated its environment during advancement. |
void |
reachedTargetRotation()
Notifies the behavior that the agent has reached its target rotation. |
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.Evaluating |
|---|
advanceEvaluation, postponeNextEvaluation, scheduleNextEvaluation, startup |
| Methods inherited from class com.threerings.tudey.server.logic.BehaviorLogic |
|---|
getEntityKey, getRotation, getTranslation, init, isActive, 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 float[] _weights
protected BehaviorLogic[] _behaviors
protected BehaviorLogic _active
| Constructor Detail |
|---|
public BehaviorLogic.Random()
| Method Detail |
|---|
public void tick(int timestamp)
BehaviorLogic
tick in class BehaviorLogic.Evaluatingpublic void reachedTargetRotation()
BehaviorLogic
reachedTargetRotation in class BehaviorLogicpublic void penetratedEnvironment(Vector2f penetration)
BehaviorLogic
penetratedEnvironment in class BehaviorLogicpenetration - the sum penetration vector.public Logic getCurrentTarget()
BehaviorLogic
getCurrentTarget in class BehaviorLogic
public void transfer(Logic source,
Map<Object,Object> refs)
Logic
transfer in class BehaviorLogic.Evaluatingprotected void didInit()
BehaviorLogic
didInit in class BehaviorLogicprotected void evaluate()
BehaviorLogic.Evaluating
evaluate in class BehaviorLogic.Evaluating
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||