|
|||||||||
| 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.EffectLogic
public class EffectLogic
Handles an effect on the server.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.threerings.tudey.server.logic.Logic |
|---|
Logic.ShapeObserver |
| Field Summary | |
|---|---|
protected ActionLogic |
_action
The effect action, if any. |
protected EffectConfig.Original |
_config
The effect configuration. |
protected Effect |
_effect
The effect fired. |
protected Shape |
_shape
The shape of the effect. |
protected Logic |
_target
The target of the effect (if any). |
| Fields inherited from class com.threerings.tudey.server.logic.Logic |
|---|
_scenemgr, _variables |
| Constructor Summary | |
|---|---|
EffectLogic()
|
|
| Method Summary | |
|---|---|
protected Effect |
createEffect(ConfigReference<EffectConfig> ref,
int timestamp,
EntityKey target,
Vector2f translation,
float rotation)
Creates the effect for this logic. |
protected void |
didInit()
Override to perform custom initialization. |
Effect |
getEffect()
Returns a reference to the effect fired. |
float |
getRotation()
Returns the rotation of this logic for the purpose of spawning actors, etc. |
Shape |
getShape()
Returns a reference to the shape of the effect. |
Vector2f |
getTranslation()
Returns the translation of this logic for the purpose of spawning actors, etc. |
void |
init(TudeySceneManager scenemgr,
ConfigReference<EffectConfig> ref,
EffectConfig.Original config,
int timestamp,
Logic target,
Vector2f translation,
float rotation)
Initializes the logic. |
boolean |
isVisible(ActorLogic actor)
Determines whether this logic object is "visible" to the specified actor. |
| Methods inherited from class com.threerings.tudey.server.logic.Logic |
|---|
addShapeObserver, createAction, createCondition, createExpression, createHandler, createRegion, createTarget, getEntityKey, getModel, getPatrolPath, getSceneManager, getTags, getTransform, getTransform, getVariable, init, isActive, isDefaultEntrance, removeShapeObserver, request, resolveTarget, setVariable, signal, transfer |
| 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 EffectConfig.Original _config
protected Effect _effect
protected Logic _target
protected Shape _shape
protected ActionLogic _action
| Constructor Detail |
|---|
public EffectLogic()
| Method Detail |
|---|
public void init(TudeySceneManager scenemgr,
ConfigReference<EffectConfig> ref,
EffectConfig.Original config,
int timestamp,
Logic target,
Vector2f translation,
float rotation)
public Effect getEffect()
public Shape getShape()
getShape in class Logicpublic boolean isVisible(ActorLogic actor)
Logic
isVisible in class Logicpublic Vector2f getTranslation()
Logic
getTranslation in class Logicpublic float getRotation()
Logic
getRotation in class Logic
protected Effect createEffect(ConfigReference<EffectConfig> ref,
int timestamp,
EntityKey target,
Vector2f translation,
float rotation)
protected void didInit()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||