com.threerings.tudey.config
Class BehaviorConfig

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.config.ManagedConfig
          extended by com.threerings.config.ParameterizedConfig
              extended by com.threerings.tudey.config.BehaviorConfig
All Implemented Interfaces:
ConfigUpdateListener<ManagedConfig>, Exportable, com.threerings.resource.ResourceManager.ModificationObserver, Copyable, Cloneable

@Strippable
public class BehaviorConfig
extends ParameterizedConfig

Configurations for agent behavior.


Nested Class Summary
static class BehaviorConfig.Combined
          A combined behavior.
static class BehaviorConfig.Derived
          A derived implementation.
static class BehaviorConfig.Evaluating
          Base class for behaviors that require periodic (re)evaluation.
static class BehaviorConfig.Follow
          Follows another actor.
static class BehaviorConfig.Implementation
          Contains the actual implementation of the behavior.
static class BehaviorConfig.Original
          Superclass of the original implementations.
static class BehaviorConfig.Patrol
          Patrols a path, area, etc.
static class BehaviorConfig.Random
          Chooses a sub-behavior randomly according to their weights for each evaluation.
static class BehaviorConfig.Scripted
          A behavior that has a set of scripted actions.
static class BehaviorConfig.Wander
          Wanders around randomly.
static class BehaviorConfig.WeightedBehavior
          Combines a behavior with its weight.
 
Field Summary
 BehaviorConfig.Implementation implementation
          The actual behavior implementation.
 
Fields inherited from class com.threerings.config.ParameterizedConfig
parameters
 
Constructor Summary
BehaviorConfig()
           
 
Method Summary
 BehaviorConfig.Original getOriginal(ConfigManager cfgmgr)
          Returns a reference to the config's underlying original implementation.
 
Methods inherited from class com.threerings.config.ParameterizedConfig
getInstance, getParameter, getReference, validateOuters, validateReferences, wasUpdated
 
Methods inherited from class com.threerings.config.ManagedConfig
addListener, configUpdated, getConfigManager, getInstance, getInstance, getInstance, getInstance, getName, init, removeListener, resourceModified, setName, updateFromSource
 
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

implementation

@Editable
public BehaviorConfig.Implementation implementation
The actual behavior implementation.

Constructor Detail

BehaviorConfig

public BehaviorConfig()
Method Detail

getOriginal

public BehaviorConfig.Original getOriginal(ConfigManager cfgmgr)
Returns a reference to the config's underlying original implementation.



Copyright © 2011. All Rights Reserved.