|
||||||||||
| 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 |
| Constructor Summary | |
|---|---|
EffectLogic()
|
|
| Method Summary | |
|---|---|
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, 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 |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||