com.threerings.tudey.config
Class ActorConfig.Agent

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.tudey.config.ActorConfig.Implementation
          extended by com.threerings.tudey.config.ActorConfig.Original
              extended by com.threerings.tudey.config.ActorConfig.Mobile
                  extended by com.threerings.tudey.config.ActorConfig.Agent
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
ActorConfig

public static class ActorConfig.Agent
extends ActorConfig.Mobile

Implementation for computer-controlled actors.


Field Summary
 ConfigReference<BehaviorConfig> behavior
          The agent's behavior.
 float turnRate
          The agent's turn rate.
 
Fields inherited from class com.threerings.tudey.config.ActorConfig.Mobile
speed, startInStasis, startMoving, stasisInterval
 
Fields inherited from class com.threerings.tudey.config.ActorConfig.Original
collisionFlags, collisionMask, defaultEntrance, handlers, isStatic, shape, spawnAdjustMask, spawnMask, sprite, tags
 
Constructor Summary
ActorConfig.Agent()
           
 
Method Summary
 Actor createActor(ConfigReference<ActorConfig> config, int id, int created, Vector2f translation, float rotation)
          Creates a new actor of the type associated with this config.
 String getLogicClassName()
          Returns the name of the server-side logic class to use for the actor.
 void getUpdateReferences(ConfigReferenceSet refs)
          Adds the implementation's update references to the provided set.
 
Methods inherited from class com.threerings.tudey.config.ActorConfig.Original
getOriginal, getPreloads, getSpriteImplementation, invalidate
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

turnRate

@Editable(min=0.0,
          scale=0.017453292519943295)
public float turnRate
The agent's turn rate.


behavior

@Editable(nullable=true)
@Strippable
public ConfigReference<BehaviorConfig> behavior
The agent's behavior.

Constructor Detail

ActorConfig.Agent

public ActorConfig.Agent()
Method Detail

getLogicClassName

public String getLogicClassName()
Description copied from class: ActorConfig.Original
Returns the name of the server-side logic class to use for the actor.

Overrides:
getLogicClassName in class ActorConfig.Mobile

createActor

public Actor createActor(ConfigReference<ActorConfig> config,
                         int id,
                         int created,
                         Vector2f translation,
                         float rotation)
Description copied from class: ActorConfig.Original
Creates a new actor of the type associated with this config.

Overrides:
createActor in class ActorConfig.Mobile

getUpdateReferences

public void getUpdateReferences(ConfigReferenceSet refs)
Description copied from class: ActorConfig.Implementation
Adds the implementation's update references to the provided set.

Overrides:
getUpdateReferences in class ActorConfig.Implementation


Copyright © 2011. All Rights Reserved.