|
|||||||||
| 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 |
| Field Summary | |
|---|---|
protected ActiveLogic |
_source
The activity source. |
protected int |
_started
The time at which the activity started. |
| Fields inherited from class com.threerings.tudey.server.logic.Logic |
|---|
_scenemgr, _variables |
| Constructor Summary | |
|---|---|
ActivityLogic()
|
|
| Method Summary | |
|---|---|
protected void |
didInit()
Override to perform custom initialization. |
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. |
protected boolean |
shouldAdvance()
Checks whether we should advance the activity to compensate for control latency, if relevant. |
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, 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 ActiveLogic _source
protected int _started
| 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 Logicprotected void didInit()
protected boolean shouldAdvance()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||