com.threerings.tudey.config
Class BehaviorConfig.WeightedBehavior

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

public static class BehaviorConfig.WeightedBehavior
extends DeepObject
implements Exportable

Combines a behavior with its weight.


Field Summary
 ConfigReference<BehaviorConfig> behavior
          The behavior itself.
 float weight
          The weight of the behavior.
 
Constructor Summary
BehaviorConfig.WeightedBehavior()
           
 
Method Summary
 
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

weight

@Editable(min=0.0,
          step=0.01)
public float weight
The weight of the behavior.


behavior

@Editable(nullable=true)
public ConfigReference<BehaviorConfig> behavior
The behavior itself.

Constructor Detail

BehaviorConfig.WeightedBehavior

public BehaviorConfig.WeightedBehavior()


Copyright © 2011. All Rights Reserved.