|
||||||||||
| 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.ActorLogic
com.threerings.tudey.server.logic.MobileLogic
public class MobileLogic
Controls the state of a mobile actor.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.threerings.tudey.server.logic.ActorLogic |
|---|
ActorLogic.CollisionFlagObserver |
| Nested classes/interfaces inherited from class com.threerings.tudey.server.logic.Logic |
|---|
Logic.ShapeObserver |
| Constructor Summary | |
|---|---|
MobileLogic()
|
|
| Method Summary | |
|---|---|
boolean |
collides(Actor actor,
Shape shape)
Checks whether the actor is colliding with anything. |
float |
getDirection()
Returns the direction of the mobile. |
boolean |
getPenetration(Actor actor,
Shape shape,
Vector2f result)
Checks whether the actor is colliding with anything and, if it is, populates the provided object with the penetration vector (the minimum translation required to cancel the penetration). |
TudeySceneModel |
getSceneModel()
Returns a reference to the scene model. |
Actor |
getSnapshot()
Returns the current tick's snapshot of the actor. |
void |
stepLimit(float minDirection,
float maxDirection,
boolean remove)
Adds or removes a step limiter. |
boolean |
tick(int timestamp)
Ticks the participant. |
void |
transfer(Logic source,
Map<Object,Object> refs)
Transfers state from the specified source logic. |
| Methods inherited from class com.threerings.tudey.server.logic.ActorLogic |
|---|
addCollisionFlagObserver, addShapeObserver, bodyWillEnter, bodyWillLeave, destroy, getActivator, getActor, getCollisionFlags, getEntityKey, getModel, getPreviousSnapshot, getRotation, getShape, getShapeElement, getSnapshotDelta, getSource, getTags, getTranslation, init, isActive, isDefaultEntrance, isDestroyed, isRemoved, isStatic, move, remove, removeCollisionFlagObserver, removeShapeObserver, request, setActivator, setSource, setVariable, signal, warp, warp, warp |
| Methods inherited from class com.threerings.tudey.server.logic.Logic |
|---|
getPatrolPath, getSceneManager, getTransform, getTransform, getVariable, init, isVisible, resolveTarget |
| 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 MobileLogic()
| Method Detail |
|---|
public void stepLimit(float minDirection,
float maxDirection,
boolean remove)
public float getDirection()
public boolean tick(int timestamp)
TudeySceneManager.TickParticipant
tick in interface TudeySceneManager.TickParticipanttimestamp - the timestamp of the current tick.
public TudeySceneModel getSceneModel()
ActorAdvancer.Environment
getSceneModel in interface ActorAdvancer.Environment
public boolean getPenetration(Actor actor,
Shape shape,
Vector2f result)
ActorAdvancer.Environment
getPenetration in interface ActorAdvancer.Environment
public boolean collides(Actor actor,
Shape shape)
ActorAdvancer.Environment
collides in interface ActorAdvancer.Environmentpublic Actor getSnapshot()
ActorLogic
getSnapshot in class ActorLogic
public void transfer(Logic source,
Map<Object,Object> refs)
Logic
transfer in class ActorLogic
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||