com.threerings.tudey.server.logic
Class TargetLogic.RandomSubset

java.lang.Object
  extended by com.threerings.util.ShallowObject
      extended by com.threerings.tudey.server.logic.Logic
          extended by com.threerings.tudey.server.logic.TargetLogic
              extended by com.threerings.tudey.server.logic.TargetLogic.Subset
                  extended by com.threerings.tudey.server.logic.TargetLogic.RandomSubset
Enclosing class:
TargetLogic

public static class TargetLogic.RandomSubset
extends TargetLogic.Subset

Limits targets to a random subset.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.tudey.server.logic.TargetLogic
TargetLogic.Activator, TargetLogic.ActivatorOf, TargetLogic.Behavior, TargetLogic.Compound, TargetLogic.Conditional, TargetLogic.DistanceSubset, TargetLogic.Excluding, TargetLogic.FarthestSubset, TargetLogic.InstanceOf, TargetLogic.Intersecting, TargetLogic.NearestSubset, TargetLogic.Randomized, TargetLogic.RandomSubset, TargetLogic.Source, TargetLogic.Subset, TargetLogic.Tagged
 
Nested classes/interfaces inherited from class com.threerings.tudey.server.logic.Logic
Logic.ShapeObserver
 
Field Summary
 
Fields inherited from class com.threerings.tudey.server.logic.TargetLogic.Subset
_target, _targets
 
Fields inherited from class com.threerings.tudey.server.logic.TargetLogic
_config, _source
 
Fields inherited from class com.threerings.tudey.server.logic.Logic
_scenemgr, _variables
 
Constructor Summary
TargetLogic.RandomSubset()
           
 
Method Summary
protected  void selectSubset(int size, Logic activator, Collection<Logic> results)
          Selects a subset of the specified size and places the objects in the results.
 
Methods inherited from class com.threerings.tudey.server.logic.TargetLogic.Subset
didInit, resolve, transfer
 
Methods inherited from class com.threerings.tudey.server.logic.TargetLogic
getEntityKey, getRotation, getTranslation, init, isActive
 
Methods inherited from class com.threerings.tudey.server.logic.Logic
addShapeObserver, createAction, createCondition, createExpression, createHandler, createRegion, createTarget, getModel, getPatrolPath, getSceneManager, getShape, getTags, getTransform, getTransform, getVariable, init, isDefaultEntrance, isVisible, removeShapeObserver, request, resolveTarget, setVariable, signal
 
Methods inherited from class com.threerings.util.ShallowObject
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TargetLogic.RandomSubset

public TargetLogic.RandomSubset()
Method Detail

selectSubset

protected void selectSubset(int size,
                            Logic activator,
                            Collection<Logic> results)
Description copied from class: TargetLogic.Subset
Selects a subset of the specified size and places the objects in the results.

Specified by:
selectSubset in class TargetLogic.Subset