com.threerings.tudey.config
Class TargetConfig

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.tudey.config.TargetConfig
All Implemented Interfaces:
Exportable, com.threerings.io.Streamable, Copyable, Cloneable
Direct Known Subclasses:
TargetConfig.Activator, TargetConfig.Behavior, TargetConfig.Compound, TargetConfig.Conditional, TargetConfig.Excluding, TargetConfig.InstanceOf, TargetConfig.Intersecting, TargetConfig.Randomized, TargetConfig.Source, TargetConfig.Subset, TargetConfig.Tagged

@EditorTypes(value={TargetConfig.Source.class,TargetConfig.Activator.class,TargetConfig.Tagged.class,TargetConfig.InstanceOf.class,TargetConfig.Intersecting.class,TargetConfig.RandomSubset.class,TargetConfig.NearestSubset.class,TargetConfig.FarthestSubset.class,TargetConfig.Conditional.class,TargetConfig.Compound.class,TargetConfig.Behavior.class,TargetConfig.Excluding.class,TargetConfig.Randomized.class})
@Strippable
public abstract class TargetConfig
extends DeepObject
implements Exportable, com.threerings.io.Streamable

Configurations for action targets.


Nested Class Summary
static class TargetConfig.Activator
          Refers to the entity that triggered the action.
static class TargetConfig.Behavior
          Refers to the current target of an agent's behavior.
static class TargetConfig.Compound
          Refers to multiple entities.
static class TargetConfig.Conditional
          Includes only targets that satisfy a condition.
static class TargetConfig.DistanceSubset
          Superclass of the distance-based subsets.
static class TargetConfig.Excluding
          Removes excluded targets from the result list.
static class TargetConfig.FarthestSubset
          Picks the N targets farthest from a reference target.
static class TargetConfig.InstanceOf
          Refers to the entity or entities whose logic is an instance of the specified class.
static class TargetConfig.Intersecting
          Refers to all actors intersecting the given region.
static class TargetConfig.NearestSubset
          Picks the N targets nearest to a reference target.
static class TargetConfig.Randomized
          Randomizes the order of targets.
static class TargetConfig.RandomSubset
          Picks a random subset of the targets.
static class TargetConfig.Source
          Refers to the source of the action.
static class TargetConfig.Subset
          Base class for the limiting filters for targets.
static class TargetConfig.Tagged
          Refers to the entity or entities bearing a certain tag.
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
com.threerings.io.Streamable.Closure
 
Constructor Summary
TargetConfig()
           
 
Method Summary
abstract  String getLogicClassName()
          Returns the name of the server-side logic class for this target.
 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

TargetConfig

public TargetConfig()
Method Detail

getLogicClassName

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


invalidate

public void invalidate()
Invalidates any cached data.



Copyright © 2011. All Rights Reserved.