com.threerings.tudey.config
Class BehaviorConfig.Random

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

public static class BehaviorConfig.Random
extends BehaviorConfig.Evaluating

Chooses a sub-behavior randomly according to their weights for each evaluation.


Field Summary
 BehaviorConfig.WeightedBehavior[] behaviors
          The weighted component behaviors.
 
Fields inherited from class com.threerings.tudey.config.BehaviorConfig.Evaluating
evaluationInterval
 
Constructor Summary
BehaviorConfig.Random()
           
 
Method Summary
 String getLogicClassName()
          Returns the name of the server-side logic class to use for the actor.
 
Methods inherited from class com.threerings.tudey.config.BehaviorConfig.Original
getOriginal
 
Methods inherited from class com.threerings.tudey.config.BehaviorConfig.Implementation
getUpdateReferences, 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

behaviors

@Editable
public BehaviorConfig.WeightedBehavior[] behaviors
The weighted component behaviors.

Constructor Detail

BehaviorConfig.Random

public BehaviorConfig.Random()
Method Detail

getLogicClassName

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

Overrides:
getLogicClassName in class BehaviorConfig.Original


Copyright © 2011. All Rights Reserved.