|
||||||||||
| 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.ActivityLogic
public abstract class ActivityLogic
Logic classes for activities.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.threerings.tudey.server.logic.Logic |
|---|
Logic.ShapeObserver |
| Constructor Summary | |
|---|---|
ActivityLogic()
|
|
| Method Summary | |
|---|---|
EntityKey |
getEntityKey()
Returns the entity key for this logic, if any. |
float |
getRotation()
Returns the rotation of this logic for the purpose of spawning actors, etc. |
Vector2f |
getTranslation()
Returns the translation of this logic for the purpose of spawning actors, etc. |
void |
init(TudeySceneManager scenemgr,
ActiveLogic source)
Initializes the logic. |
boolean |
isActive()
Determines whether this logic object is still active in the scene. |
void |
start(int timestamp)
Starts the activity. |
void |
tick(int timestamp)
Updates the activity. |
void |
transfer(Logic source,
Map<Object,Object> refs)
Transfers state from the specified source logic. |
| Methods inherited from class com.threerings.tudey.server.logic.Logic |
|---|
addShapeObserver, 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 |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActivityLogic()
| Method Detail |
|---|
public void init(TudeySceneManager scenemgr,
ActiveLogic source)
public void start(int timestamp)
public void tick(int timestamp)
public boolean isActive()
Logic
isActive in class Logicpublic EntityKey getEntityKey()
Logic
getEntityKey in class Logicpublic Vector2f getTranslation()
Logic
getTranslation in class Logicpublic float getRotation()
Logic
getRotation in class Logic
public void transfer(Logic source,
Map<Object,Object> refs)
Logic
transfer in class Logic
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||