com.threerings.tudey.config
Class ConditionConfig

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.tudey.config.ConditionConfig
All Implemented Interfaces:
Exportable, com.threerings.io.Streamable, Copyable, Cloneable
Direct Known Subclasses:
ConditionConfig.Action, ConditionConfig.All, ConditionConfig.Always, ConditionConfig.Any, ConditionConfig.Cooldown, ConditionConfig.DistanceWithin, ConditionConfig.Evaluate, ConditionConfig.FlagSet, ConditionConfig.InstanceOf, ConditionConfig.Intersecting, ConditionConfig.Limit, ConditionConfig.Not, ConditionConfig.Random, ConditionConfig.Tagged

@EditorTypes(value={ConditionConfig.Tagged.class,ConditionConfig.InstanceOf.class,ConditionConfig.Intersecting.class,ConditionConfig.DistanceWithin.class,ConditionConfig.Random.class,ConditionConfig.Limit.class,ConditionConfig.All.class,ConditionConfig.Any.class,ConditionConfig.FlagSet.class,ConditionConfig.Cooldown.class,ConditionConfig.Not.class,ConditionConfig.Always.class,ConditionConfig.Evaluate.class,ConditionConfig.Action.class})
@Strippable
public abstract class ConditionConfig
extends DeepObject
implements Exportable, com.threerings.io.Streamable

Configurations for handler conditions.


Nested Class Summary
static class ConditionConfig.Action
          Satisfied if executing the aciton returns true.
static class ConditionConfig.All
          Satisfied if all of the component conditions are satisfied.
static class ConditionConfig.Always
          Satisfied always.
static class ConditionConfig.Any
          Satisfied if any of the component conditions are satisfied.
static class ConditionConfig.Cooldown
          Ensures a cooldown time is met between satisfied conditions.
static class ConditionConfig.DistanceWithin
          Determines whether the distance between two entities is within a pair of bounds.
static class ConditionConfig.Evaluate
          Satisfied if the expression evaluates to true.
static class ConditionConfig.FlagSet
          Determines whether an actor's flag is set.
static class ConditionConfig.InstanceOf
          Determines whether an entity('s logic) is an instance of some class.
static class ConditionConfig.Intersecting
          Determines whether two regions intersect.
static class ConditionConfig.Limit
          Will be satisfied a fixed number of times.
static class ConditionConfig.Not
          Satisfied if the component condition is not satisfied.
static class ConditionConfig.Random
          Satisfied with a fixed probability.
static class ConditionConfig.Tagged
          Determines whether an entity has a tag.
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
com.threerings.io.Streamable.Closure
 
Constructor Summary
ConditionConfig()
           
 
Method Summary
abstract  String getLogicClassName()
          Returns the name of the server-side logic class for this condition.
 void getPreloads(ConfigManager cfgmgr, PreloadableSet preloads)
          Adds the resources to preload for this action into the provided set.
 void invalidate()
          Invalidates any cached data.
 
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
 

Constructor Detail

ConditionConfig

public ConditionConfig()
Method Detail

getLogicClassName

public abstract String getLogicClassName()
Returns the name of the server-side logic class for this condition.


getPreloads

public void getPreloads(ConfigManager cfgmgr,
                        PreloadableSet preloads)
Adds the resources to preload for this action into the provided set.


invalidate

public void invalidate()
Invalidates any cached data.



Copyright © 2011. All Rights Reserved.