|
|||||||||
| 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.ActionLogic
com.threerings.tudey.server.logic.ActionLogic.SpawnActor
public static class ActionLogic.SpawnActor
Handles a spawn actor action.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.threerings.tudey.server.logic.Logic |
|---|
Logic.ShapeObserver |
| Field Summary | |
|---|---|
protected TargetLogic |
_location
The target location. |
| Fields inherited from class com.threerings.tudey.server.logic.ActionLogic |
|---|
_config, _source, _targets |
| Fields inherited from class com.threerings.tudey.server.logic.Logic |
|---|
_scenemgr, _variables |
| Constructor Summary | |
|---|---|
ActionLogic.SpawnActor()
|
|
| Method Summary | |
|---|---|
protected void |
didInit()
Override to perform custom initialization. |
boolean |
execute(int timestamp,
Logic activator)
Executes the action. |
ConfigReference<ActorConfig> |
getActorConfig(Logic activator)
Returns the actor config to spawn. |
protected float |
getRotation(Logic target)
Gets the rotation for the spawned actor. |
protected Vector2f |
getTranslation(Logic target)
Gets the translation for the spawned actor. |
protected void |
initLogic(ActorLogic logic,
Logic activator)
Initializes the logic. |
protected boolean |
spawnActor(int timestamp,
ConfigReference<ActorConfig> actor,
Logic target,
Logic activator)
Spawns an actor at the target |
void |
transfer(Logic source,
Map<Object,Object> refs)
Transfers state from the specified source logic. |
| Methods inherited from class com.threerings.tudey.server.logic.ActionLogic |
|---|
getEntityKey, getRotation, getTranslation, init, isActive, removed, shouldExecute, wasRemoved |
| 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 TargetLogic _location
| Constructor Detail |
|---|
public ActionLogic.SpawnActor()
| Method Detail |
|---|
public boolean execute(int timestamp,
Logic activator)
ActionLogic
execute in class ActionLogicactivator - the entity that triggered the action.
public void transfer(Logic source,
Map<Object,Object> refs)
Logic
transfer in class Logicprotected void didInit()
ActionLogic
didInit in class ActionLogicpublic ConfigReference<ActorConfig> getActorConfig(Logic activator)
protected boolean spawnActor(int timestamp,
ConfigReference<ActorConfig> actor,
Logic target,
Logic activator)
protected void initLogic(ActorLogic logic,
Logic activator)
protected float getRotation(Logic target)
protected Vector2f getTranslation(Logic target)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||