com.threerings.tudey.server.logic
Class BehaviorLogic.Combined

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

public static class BehaviorLogic.Combined
extends BehaviorLogic

Handles the combined 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.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
 
Fields inherited from class com.threerings.tudey.server.logic.BehaviorLogic
MAX_FOLLOW_PATH_LENGTH
 
Constructor Summary
BehaviorLogic.Combined()
           
 
Method Summary
 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 shutdown()
          Shuts down the behavior when the agent is destroyed.
 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
getEntityKey, getRotation, getTranslation, init, isActive
 
Methods inherited from class com.threerings.tudey.server.logic.Logic
addShapeObserver, 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
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BehaviorLogic.Combined

public BehaviorLogic.Combined()
Method Detail

startup

public void startup()
Description copied from class: BehaviorLogic
Starts up the behavior after initialization or suspension.

Overrides:
startup in class BehaviorLogic

shutdown

public void shutdown()
Description copied from class: BehaviorLogic
Shuts down the behavior when the agent is destroyed.

Overrides:
shutdown in class BehaviorLogic

tick

public void tick(int timestamp)
Description copied from class: BehaviorLogic
Ticks the behavior.

Overrides:
tick in class BehaviorLogic

reachedTargetRotation

public void reachedTargetRotation()
Description copied from class: BehaviorLogic
Notifies the behavior that the agent has reached its target rotation.

Overrides:
reachedTargetRotation in class BehaviorLogic

penetratedEnvironment

public void penetratedEnvironment(Vector2f penetration)
Description copied from class: BehaviorLogic
Notifies the behavior that the agent has penetrated its environment during advancement.

Overrides:
penetratedEnvironment in class BehaviorLogic
Parameters:
penetration - the sum penetration vector.

getCurrentTarget

public Logic getCurrentTarget()
Description copied from class: BehaviorLogic
Returns the currently targeted logic, if any.

Overrides:
getCurrentTarget in class BehaviorLogic

transfer

public void transfer(Logic source,
                     Map<Object,Object> refs)
Description copied from class: Logic
Transfers state from the specified source logic. Where relevant, this also takes the place of addition/startup notification.

Overrides:
transfer in class Logic


Copyright © 2011. All Rights Reserved.