|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.util.ShallowObject
com.threerings.tudey.server.logic.Logic
com.threerings.tudey.server.logic.ConditionLogic
com.threerings.tudey.server.logic.ConditionLogic.Intersecting
public static class ConditionLogic.Intersecting
Evaluates the intersect condition logic.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.threerings.tudey.server.logic.ConditionLogic |
|---|
ConditionLogic.Action, ConditionLogic.All, ConditionLogic.Always, ConditionLogic.Any, ConditionLogic.Cooldown, ConditionLogic.DistanceWithin, ConditionLogic.Evaluate, ConditionLogic.FlagSet, ConditionLogic.InstanceOf, ConditionLogic.Intersecting, ConditionLogic.IntersectsScene, ConditionLogic.Is, ConditionLogic.Limit, ConditionLogic.Not, ConditionLogic.Random, ConditionLogic.Tagged, ConditionLogic.Targeted |
| Nested classes/interfaces inherited from class com.threerings.tudey.server.logic.Logic |
|---|
Logic.ShapeObserver |
| Field Summary | |
|---|---|
protected RegionLogic |
_first
The regions to check. |
protected ArrayList<Shape> |
_firsts
Holds shapes during evaluation. |
protected RegionLogic |
_second
The regions to check. |
protected ArrayList<Shape> |
_seconds
Holds shapes during evaluation. |
| Fields inherited from class com.threerings.tudey.server.logic.ConditionLogic |
|---|
_config, _source |
| Fields inherited from class com.threerings.tudey.server.logic.Logic |
|---|
_scenemgr, _variables |
| Constructor Summary | |
|---|---|
ConditionLogic.Intersecting()
|
|
| Method Summary | |
|---|---|
protected void |
didInit()
Override to perform custom initialization. |
protected boolean |
intersectsSecond(Shape shape)
Determines whether the specified shape from the first target satisfies the intersection condition. |
boolean |
isSatisfied(Logic activator)
Determines whether the condition is satisfied. |
void |
transfer(Logic source,
Map<Object,Object> refs)
Transfers state from the specified source logic. |
| Methods inherited from class com.threerings.tudey.server.logic.ConditionLogic |
|---|
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 |
| Field Detail |
|---|
protected RegionLogic _first
protected RegionLogic _second
protected ArrayList<Shape> _firsts
protected ArrayList<Shape> _seconds
| Constructor Detail |
|---|
public ConditionLogic.Intersecting()
| Method Detail |
|---|
public boolean isSatisfied(Logic activator)
ConditionLogic
isSatisfied in class ConditionLogicactivator - the entity that triggered the action.
public void transfer(Logic source,
Map<Object,Object> refs)
Logic
transfer in class Logicprotected void didInit()
ConditionLogic
didInit in class ConditionLogicprotected boolean intersectsSecond(Shape shape)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||