|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.crowd.server.PlaceManager
com.threerings.whirled.server.SceneManager
com.threerings.tudey.server.TudeySceneManager
public class TudeySceneManager
Manager for Tudey scenes.
| Nested Class Summary | |
|---|---|
static interface |
TudeySceneManager.ActorObserver
An interface for objects to notify when actors are added or removed. |
static interface |
TudeySceneManager.IntersectionSensor
An interface for objects that should be notified when actors intersect them. |
protected static class |
TudeySceneManager.ProfileTickOp
Extends the tick op with profiling bits. |
static interface |
TudeySceneManager.Sensor
Base interface for sensors. |
static interface |
TudeySceneManager.ShutdownObserver
An interface for objects to notify when we shutdown. |
protected static class |
TudeySceneManager.TickOp
(Re)used to tick the participants. |
static interface |
TudeySceneManager.TickParticipant
An interface for objects that take part in the server tick. |
protected static class |
TudeySceneManager.TickProfile
Records information about a tick participant. |
| Nested classes/interfaces inherited from class com.threerings.crowd.server.PlaceManager |
|---|
PlaceManager.DelegateOp, PlaceManager.MessageHandler |
| Nested classes/interfaces inherited from interface com.samskivert.util.RunQueue |
|---|
RunQueue.AsExecutor |
| Field Summary | |
|---|---|
protected ObserverList<TudeySceneManager.ActorObserver> |
_actorObservers
The list of actor observers. |
protected HashIntMap<ActorLogic> |
_actors
Actor logic objects mapped by id. |
protected HashSpace |
_actorSpace
The actor space. |
protected ConfigManager |
_cfgmgr
A reference to the scene model's configuration manager. |
protected HashIntMap<ClientLiaison> |
_clients
Maps body oids to client liaisons. |
protected ClientManager |
_clmgr
The client manager. |
protected ArrayList<Logic> |
_defaultEntrances
The logic objects corresponding to default entrances. |
protected Rect |
_defaultLocalInterest
The default local interest region. |
protected ArrayList<Effect> |
_effects
Holds collected effects during queries. |
protected ArrayList<EffectLogic> |
_effectsFired
The logic for effects fired on the current tick. |
protected ArrayList<SpaceElement> |
_elements
Holds collected elements during queries. |
protected long |
_emptyTime
The time at which the last occupant left. |
protected HashIntMap<Object> |
_entering
Maps oids of entering bodies to the keys of the portals through which they're entering. |
protected HashMap<Object,EntryLogic> |
_entries
Scene entry logic objects mapped by key. |
protected com.google.inject.Injector |
_injector
The injector that we use to create and initialize our logic objects. |
protected HashMap<Class<?>,ArrayList<Logic>> |
_instances
Maps logic classes to lists of logic instances. |
protected int |
_lastActorId
The last actor id assigned. |
protected long |
_lastTick
The system time of the last tick. |
protected Pathfinder |
_pathfinder
The pathfinder used for path computation. |
protected Vector2f |
_penetration
Stores penetration vector during queries. |
protected int |
_previousTimestamp
The timestamp of the current and previous ticks. |
protected static Map<String,TudeySceneManager.TickProfile> |
_profiles
Used to profile our tick participants. |
protected TudeySceneManager.ProfileTickOp |
_profileTickOp
The tick op used when profiling. |
protected List<Runnable> |
_runlist
Holds runnables during tick. |
protected List<Runnable> |
_runnables
Runnables enqueued for the next tick. |
protected HashSpace |
_sensorSpace
The sensor space. |
protected ObserverList<TudeySceneManager.ShutdownObserver> |
_shutdownObservers
The list of shutdown observers. |
protected static ObserverList.ObserverOp<TudeySceneManager.ShutdownObserver> |
_shutdownOp
Shutdown observer op. |
protected Set<ActorLogic> |
_staticActors
"Static" actors. |
protected Set<ActorLogic> |
_staticActorsAdded
The logic for static actors added on the current tick. |
protected Set<ActorLogic> |
_staticActorsRemoved
The logic for static actors removed on the current tick. |
protected Set<ActorLogic> |
_staticActorsUpdated
The logic for static actors updated on the current tick. |
protected HashMap<String,ArrayList<Logic>> |
_tagged
Maps tags to lists of logic objects with that tag. |
protected long |
_tickDuration
The duration of processing for the last tick. |
protected SceneTicker |
_ticker
The ticker. |
protected boolean |
_ticking
Set when we're actually in the process of ticking. |
protected TudeySceneManager.TickOp |
_tickOp
Used to tick the participants. |
protected static long |
_tickParticipantCount
Incremented on each participant tick when profiling. |
protected ObserverList<TudeySceneManager.TickParticipant> |
_tickParticipants
The list of participants in the tick. |
protected static boolean |
_tickProfEnabled
Whether or not we're profiling tick participants. |
protected static int |
_tickProfInterval
The frequency at which we take tick samples. |
protected int |
_timestamp
The timestamp of the current and previous ticks. |
protected TudeySceneObject |
_tsobj
A casted reference to the Tudey scene object. |
| Fields inherited from class com.threerings.whirled.server.SceneManager |
|---|
_invoker, _scene, _screg, _updates |
| Fields inherited from class com.threerings.crowd.server.PlaceManager |
|---|
_bodyUpdater, _config, _deathListener, _delegates, _dispatcher, _dispatcherFinders, _invmgr, _locator, _marshallers, _msghandlers, _occInfo, _occListener, _omgr, _plobj, _registry, _shutdownInterval |
| Fields inherited from interface com.samskivert.util.RunQueue |
|---|
AWT |
| Fields inherited from interface com.threerings.tudey.data.TudeyCodes |
|---|
DEFAULT_BUFFER_DELAY, DEFAULT_TICK_INTERVAL |
| Fields inherited from interface com.threerings.presents.data.InvocationCodes |
|---|
ACCESS_DENIED, E_ACCESS_DENIED, E_INTERNAL_ERROR, GLOBAL_GROUP, INTERNAL_ERROR |
| Constructor Summary | |
|---|---|
TudeySceneManager()
|
|
| Method Summary | ||
|---|---|---|
void |
addActorObserver(TudeySceneManager.ActorObserver observer)
Adds an observer for actor events. |
|
protected EntryLogic |
addLogic(TudeySceneModel.Entry entry,
boolean notify)
Adds the logic object for the specified scene entry, if any. |
|
void |
addMappings(Logic logic)
Registers the specified logic object unders its mappings. |
|
void |
addShutdownObserver(TudeySceneManager.ShutdownObserver observer)
Adds a shutdown observer. |
|
void |
addTickParticipant(TudeySceneManager.TickParticipant participant)
Adds a participant to notify at each tick. |
|
void |
addTickParticipant(TudeySceneManager.TickParticipant participant,
boolean withinTick)
Adds a participant to notify at each tick. |
|
protected void |
bodyEntered(int bodyOid)
|
|
protected void |
bodyLeft(int bodyOid)
|
|
protected void |
bodyUpdated(OccupantInfo info)
|
|
void |
bodyWillEnter(BodyObject body)
|
|
void |
bodyWillLeave(BodyObject body)
|
|
void |
clearEnteringBody(BodyObject body)
Clears out the mapping for an entering body. |
|
static void |
clearTickProfiles()
Clears the current set of tick profiles. |
|
boolean |
collides(ActorLogic logic)
Determines whether the specified actor collides with anything in the environment. |
|
boolean |
collides(ActorLogic logic,
Shape shape)
Determines whether the specified actor collides with anything in the environment. |
|
boolean |
collides(ActorLogic logic,
Shape shape,
int timestamp)
Determines whether the specified actor collides with anything in the environment. |
|
boolean |
collides(Actor actor,
Shape shape)
Checks whether the actor is colliding with anything. |
|
boolean |
collides(Actor actor,
Shape shape,
int timestamp)
Determines whether the specified actor collides with anything in the environment. |
|
boolean |
collides(int mask,
Shape shape)
Determines whether the specified shape collides with anything in the environment. |
|
boolean |
collides(int mask,
Shape shape,
int timestamp)
Determines whether the specified shape collides with anything in the environment. |
|
protected ClientLiaison |
createClientLiaison(BodyObject bodyobj,
CrowdSession session)
Creates the client liaison for the specified body. |
|
protected void |
createEntryLogics(TudeySceneModel sceneModel)
Creates logics for an entries that have them. |
|
Logic |
createLogic(String cname)
Creates an instance of the logic object with the specified class name using the injector, logging a warning and returning null on error. |
|
protected PlaceObject |
createPlaceObject()
|
|
protected void |
didShutdown()
|
|
protected void |
didStartup()
|
|
static void |
dumpTickProfiles()
Dumps the current set of tick profiles to the log. |
|
void |
enqueueInputReliable(ClientObject caller,
int acknowledge,
int smoothedTime,
InputFrame[] frames)
Handles a TudeySceneService.enqueueInputReliable(int, int, com.threerings.tudey.data.InputFrame[]) request. |
|
void |
enqueueInputUnreliable(ClientObject caller,
int acknowledge,
int smoothedTime,
InputFrame[] frames)
Handles a TudeySceneService.enqueueInputUnreliable(int, int, com.threerings.tudey.data.InputFrame[]) request. |
|
void |
enteredPlace(ClientObject caller)
Handles a TudeySceneService.enteredPlace() request. |
|
void |
entryAdded(TudeySceneModel.Entry entry)
Notes that an entry has been added to the scene. |
|
void |
entryRemoved(TudeySceneModel.Entry oentry)
Notes that an entry has been removed from the scene. |
|
void |
entryUpdated(TudeySceneModel.Entry oentry,
TudeySceneModel.Entry nentry)
Notes that an entry has been updated within the scene. |
|
EffectLogic |
fireEffect(int timestamp,
Logic target,
Vector2f translation,
float rotation,
ConfigReference<EffectConfig> ref)
Fires off an effect with the referenced configuration. |
|
EffectLogic |
fireEffect(int timestamp,
Logic target,
Vector2f translation,
float rotation,
String name)
Fires off an effect at the with the named configuration. |
|
EffectLogic |
fireEffect(int timestamp,
Logic target,
Vector2f translation,
float rotation,
String name,
String firstKey,
Object firstValue,
Object... otherArgs)
Fires off an effect with the supplied name and arguments. |
|
ActorLogic |
getActorLogic(int id)
Returns the logic object for the actor with the provided id, if any. |
|
HashSpace |
getActorSpace()
Returns a reference to the actor space. |
|
int |
getBufferDelay()
Returns the delay with which the clients display information received from the server in order to compensate for network jitter and dropped packets. |
|
ConfigManager |
getConfigManager()
Returns a reference to the configuration manager for the scene. |
|
boolean |
getDebugRegions()
Checks whether we should show region debug effects. |
|
protected Logic |
getDefaultEntrance(BodyObject body)
Selects a default entrance for an entering player. |
|
Rect |
getDefaultLocalInterest()
Returns the default untransformed area of interest region for clients. |
|
Effect[] |
getEffectsFired(PawnLogic target,
Rect bounds)
Returns an array containing all effects fired on the current tick whose influence regions intersect the provided bounds. |
|
EntryLogic |
getEntryLogic(Object key)
Returns the logic object for the entry with the provided key, if any. |
|
|
getInstances(Class<L> clazz)
Returns the list of logic objects that are instances of the supplied class. |
|
boolean |
getIntersection(Ray2D ray,
float length,
int mask,
int timestamp,
Vector2f intersection)
Determines the intersection point of this segment in the environment. |
|
Logic |
getLogic(EntityKey key)
Returns the logic object for the entity with the provided key, if any. |
|
int |
getNextTimestamp()
Returns the approximate timestamp of the next tick. |
|
Pathfinder |
getPathfinder()
Returns a reference to the pathfinder object. |
|
protected ConfigReference<ActorConfig> |
getPawnConfig(BodyObject body)
Returns a reference to the configuration to use for the specified body's pawn or null for none. |
|
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). |
|
int |
getPreviousTimestamp()
Returns the timestamp of the last tick. |
|
TudeySceneModel |
getSceneModel()
Returns a reference to the scene model. |
|
HashSpace |
getSensorSpace()
Returns a reference to the sensor space. |
|
Set<ActorLogic> |
getStaticActors()
Returns a reference to the set of static actors. |
|
Set<ActorLogic> |
getStaticActorsAdded()
Returns a reference to the set of static actors added on the current tick. |
|
Set<ActorLogic> |
getStaticActorsRemoved()
Returns a reference to the set of static actors removed on the current tick. |
|
Set<ActorLogic> |
getStaticActorsUpdated()
Returns a reference to the set of static actors updated on the current tick. |
|
List<Logic> |
getTagged(String tag)
Returns the list of logic objects with the supplied tag. |
|
PawnLogic |
getTarget(ClientObject clobj)
Returns a reference to the target of the specified client, if any. |
|
long |
getTickDuration()
Returns the amount of time spent processing the last tick. |
|
protected SceneTicker |
getTicker()
Returns the ticker with which to tick the scene. |
|
int |
getTickInterval()
Returns the interval at which we call the tick() method. |
|
static int |
getTickProfInterval()
Returns the tick profile interval. |
|
int |
getTicksPerSecond()
Returns the number of ticks per second. |
|
int |
getTimestamp()
Returns the timestamp of the current tick. |
|
int |
getTransmitInterval()
Returns the interval at which clients transmit their input frames. |
|
void |
getVisibleActors(PawnLogic target,
Rect bounds,
Collection<ActorLogic> results)
Populates the supplied collection with references to all non-static actors visible to the specified target whose influence regions intersect the provided bounds. |
|
protected long |
idleTickPeriod()
Returns the number of milliseconds to continue ticking when there are no occupants in the scene. |
|
boolean |
isDispatchThread()
|
|
boolean |
isRunning()
|
|
static boolean |
isTickProfEnabled()
Checks whether tick profiling is enabled. |
|
void |
mapEnteringBody(BodyObject body,
Object portalKey)
Notes that a body will be entering via the identified portal. |
|
protected void |
maybeAddDefaultEntrance(Logic logic)
Adds a logic to the default entrance if it has been marked as such. |
|
protected void |
placeBecameEmpty()
|
|
void |
postRunnable(Runnable runnable)
|
|
void |
removeActorLogic(int id)
Removes the logic mapping for the actor with the given id. |
|
void |
removeActorObserver(TudeySceneManager.ActorObserver observer)
Removes an actor observer. |
|
protected void |
removeLogic(Object key)
Removes the logic object for the specified scene entry, if any. |
|
void |
removeMappings(Logic logic)
Remove the specified logic object from the mappings. |
|
void |
removeShutdownObserver(TudeySceneManager.ShutdownObserver observer)
Removes a shutdown observer. |
|
void |
removeTickParticipant(TudeySceneManager.TickParticipant participant)
Removes a participant from the tick list. |
|
void |
setCameraParams(ClientObject caller,
CameraConfig config,
float aspect)
Handles a TudeySceneService.setCameraParams(com.threerings.tudey.config.CameraConfig, float) request. |
|
void |
setDefaultLocalInterest(Rect interest)
Sets the default untransformed area of interest region for clients. |
|
void |
setTarget(ClientObject caller,
int pawnId)
Handles a TudeySceneService.setTarget(int) request. |
|
static void |
setTickProfEnabled(boolean enabled)
Enables or disables tick participant profiling. |
|
static void |
setTickProfInterval(int interval)
Sets the frequency at which we sample tick participants. |
|
ActorLogic |
spawnActor(int timestamp,
Vector2f translation,
float rotation,
ConfigReference<ActorConfig> ref)
Spawns an actor with the referenced configuration. |
|
ActorLogic |
spawnActor(int timestamp,
Vector2f translation,
float rotation,
ConfigReference<ActorConfig> ref,
Actor actor)
Spawns an actor with the referenced configuration. |
|
ActorLogic |
spawnActor(int timestamp,
Vector2f translation,
float rotation,
String name)
Spawns an actor with the named configuration. |
|
ActorLogic |
spawnActor(int timestamp,
Vector2f translation,
float rotation,
String name,
String firstKey,
Object firstValue,
Object... otherArgs)
Spawns an actor with the supplied name and arguments. |
|
void |
staticActorUpdated(ActorLogic logic)
Notes that a static actor's state has changed. |
|
void |
submitActorRequest(ClientObject caller,
int actorId,
String name)
Handles a TudeySceneService.submitActorRequest(int, java.lang.String) request. |
|
void |
submitEntryRequest(ClientObject caller,
Object key,
String name)
Handles a TudeySceneService.submitEntryRequest(java.lang.Object, java.lang.String) request. |
|
void |
tick()
Updates the scene. |
|
int |
triggerIntersectionSensors(int timestamp,
ActorLogic actor)
Triggers any intersection sensors intersecting the specified shape. |
|
int |
triggerSensors(Class<? extends TudeySceneManager.Sensor> type,
int timestamp,
Collection<Shape> shapes,
int flags,
ActorLogic actor)
Triggers any sensors of the specified type intersecting the specified shape. |
|
int |
triggerSensors(Class<? extends TudeySceneManager.Sensor> type,
int timestamp,
Shape shape,
int flags,
ActorLogic actor)
Triggers any sensors of the specified type intersecting the specified shape. |
|
protected static void |
updateTickProfile(Object participant,
long started)
Updates the tick profile for the specified participant. |
|
| Methods inherited from class com.threerings.whirled.server.SceneManager |
|---|
getLocation, getScene, getUpdates, gotSceneData, isPersistent, recordUpdate, setSceneData, toString, where |
| Methods inherited from class com.threerings.crowd.server.PlaceManager |
|---|
addDelegate, addDispatcher, addOccupantInfo, addProvider, applyToDelegates, applyToOccupants, cancelShutdowner, checkPermissions, checkShutdownInterval, createSpeakHandler, didInit, getAccessController, getConfig, getPlaceObject, getPlaceObjectClass, idleUnloadPeriod, init, isValidSpeaker, messageReceived, permissionsFailed, ratifyBodyEntry, registerMessageHandler, shouldCreateSpeakService, shouldDeclareEmpty, shutdown, startup, toString, updateOccupantInfo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
@Inject protected com.google.inject.Injector _injector
@Inject protected ClientManager _clmgr
protected TudeySceneObject _tsobj
protected ConfigManager _cfgmgr
protected SceneTicker _ticker
protected long _lastTick
protected long _tickDuration
protected int _timestamp
protected int _previousTimestamp
protected long _emptyTime
protected int _lastActorId
protected HashIntMap<Object> _entering
protected HashIntMap<ClientLiaison> _clients
protected ObserverList<TudeySceneManager.TickParticipant> _tickParticipants
protected boolean _ticking
protected ObserverList<TudeySceneManager.ActorObserver> _actorObservers
protected ObserverList<TudeySceneManager.ShutdownObserver> _shutdownObservers
protected HashMap<Object,EntryLogic> _entries
protected HashIntMap<ActorLogic> _actors
protected Set<ActorLogic> _staticActors
protected HashMap<String,ArrayList<Logic>> _tagged
protected HashMap<Class<?>,ArrayList<Logic>> _instances
protected ArrayList<Logic> _defaultEntrances
protected HashSpace _actorSpace
protected HashSpace _sensorSpace
protected Pathfinder _pathfinder
protected Set<ActorLogic> _staticActorsAdded
protected Set<ActorLogic> _staticActorsUpdated
protected Set<ActorLogic> _staticActorsRemoved
protected ArrayList<EffectLogic> _effectsFired
protected List<Runnable> _runnables
protected Rect _defaultLocalInterest
protected ArrayList<SpaceElement> _elements
protected ArrayList<Effect> _effects
protected List<Runnable> _runlist
protected TudeySceneManager.TickOp _tickOp
protected TudeySceneManager.ProfileTickOp _profileTickOp
protected Vector2f _penetration
protected static boolean _tickProfEnabled
protected static int _tickProfInterval
protected static Map<String,TudeySceneManager.TickProfile> _profiles
protected static long _tickParticipantCount
protected static final ObserverList.ObserverOp<TudeySceneManager.ShutdownObserver> _shutdownOp
| Constructor Detail |
|---|
public TudeySceneManager()
| Method Detail |
|---|
public static void setTickProfEnabled(boolean enabled)
public static boolean isTickProfEnabled()
public static void setTickProfInterval(int interval)
public static int getTickProfInterval()
public static void dumpTickProfiles()
public static void clearTickProfiles()
public int getBufferDelay()
public int getTicksPerSecond()
public int getTickInterval()
tick() method.
public int getTransmitInterval()
public ConfigManager getConfigManager()
public void addTickParticipant(TudeySceneManager.TickParticipant participant)
public void addTickParticipant(TudeySceneManager.TickParticipant participant,
boolean withinTick)
withinTick - if true and we are not currently in the process of ticking, adds the
participant in the next tick.public void removeTickParticipant(TudeySceneManager.TickParticipant participant)
public void addActorObserver(TudeySceneManager.ActorObserver observer)
public void removeActorObserver(TudeySceneManager.ActorObserver observer)
public void addShutdownObserver(TudeySceneManager.ShutdownObserver observer)
public void removeShutdownObserver(TudeySceneManager.ShutdownObserver observer)
public int getTimestamp()
public int getPreviousTimestamp()
public int getNextTimestamp()
public long getTickDuration()
public List<Logic> getTagged(String tag)
public <L extends Logic> List<L> getInstances(Class<L> clazz)
public HashSpace getActorSpace()
public HashSpace getSensorSpace()
public Pathfinder getPathfinder()
public void setDefaultLocalInterest(Rect interest)
public Rect getDefaultLocalInterest()
public boolean getDebugRegions()
public ActorLogic spawnActor(int timestamp,
Vector2f translation,
float rotation,
String name)
public ActorLogic spawnActor(int timestamp,
Vector2f translation,
float rotation,
String name,
String firstKey,
Object firstValue,
Object... otherArgs)
public ActorLogic spawnActor(int timestamp,
Vector2f translation,
float rotation,
ConfigReference<ActorConfig> ref)
public ActorLogic spawnActor(int timestamp,
Vector2f translation,
float rotation,
ConfigReference<ActorConfig> ref,
Actor actor)
actor - if non-null, the already-created actor object.
public EffectLogic fireEffect(int timestamp,
Logic target,
Vector2f translation,
float rotation,
String name)
public EffectLogic fireEffect(int timestamp,
Logic target,
Vector2f translation,
float rotation,
String name,
String firstKey,
Object firstValue,
Object... otherArgs)
public EffectLogic fireEffect(int timestamp,
Logic target,
Vector2f translation,
float rotation,
ConfigReference<EffectConfig> ref)
public Logic createLogic(String cname)
null on error.
public Logic getLogic(EntityKey key)
public EntryLogic getEntryLogic(Object key)
public ActorLogic getActorLogic(int id)
public void getVisibleActors(PawnLogic target,
Rect bounds,
Collection<ActorLogic> results)
public Set<ActorLogic> getStaticActors()
public Set<ActorLogic> getStaticActorsAdded()
public Set<ActorLogic> getStaticActorsUpdated()
public Set<ActorLogic> getStaticActorsRemoved()
public Effect[] getEffectsFired(PawnLogic target,
Rect bounds)
public PawnLogic getTarget(ClientObject clobj)
public void removeActorLogic(int id)
public int triggerIntersectionSensors(int timestamp,
ActorLogic actor)
public int triggerSensors(Class<? extends TudeySceneManager.Sensor> type,
int timestamp,
Shape shape,
int flags,
ActorLogic actor)
public int triggerSensors(Class<? extends TudeySceneManager.Sensor> type,
int timestamp,
Collection<Shape> shapes,
int flags,
ActorLogic actor)
public boolean collides(ActorLogic logic)
public boolean collides(ActorLogic logic,
Shape shape)
public boolean collides(ActorLogic logic,
Shape shape,
int timestamp)
public boolean collides(Actor actor,
Shape shape,
int timestamp)
public boolean collides(int mask,
Shape shape)
public boolean collides(int mask,
Shape shape,
int timestamp)
public boolean getIntersection(Ray2D ray,
float length,
int mask,
int timestamp,
Vector2f intersection)
public void staticActorUpdated(ActorLogic logic)
public void mapEnteringBody(BodyObject body,
Object portalKey)
public void clearEnteringBody(BodyObject body)
public void bodyWillEnter(BodyObject body)
bodyWillEnter in class PlaceManagerpublic void bodyWillLeave(BodyObject body)
bodyWillLeave in class PlaceManagerpublic void enteredPlace(ClientObject caller)
TudeySceneProviderTudeySceneService.enteredPlace() request.
enteredPlace in interface TudeySceneProvider
public void enqueueInputReliable(ClientObject caller,
int acknowledge,
int smoothedTime,
InputFrame[] frames)
TudeySceneProviderTudeySceneService.enqueueInputReliable(int, int, com.threerings.tudey.data.InputFrame[]) request.
enqueueInputReliable in interface TudeySceneProvider
public void enqueueInputUnreliable(ClientObject caller,
int acknowledge,
int smoothedTime,
InputFrame[] frames)
TudeySceneProviderTudeySceneService.enqueueInputUnreliable(int, int, com.threerings.tudey.data.InputFrame[]) request.
enqueueInputUnreliable in interface TudeySceneProvider
public void setTarget(ClientObject caller,
int pawnId)
TudeySceneProviderTudeySceneService.setTarget(int) request.
setTarget in interface TudeySceneProvider
public void setCameraParams(ClientObject caller,
CameraConfig config,
float aspect)
TudeySceneProviderTudeySceneService.setCameraParams(com.threerings.tudey.config.CameraConfig, float) request.
setCameraParams in interface TudeySceneProvider
public void submitActorRequest(ClientObject caller,
int actorId,
String name)
TudeySceneProviderTudeySceneService.submitActorRequest(int, java.lang.String) request.
submitActorRequest in interface TudeySceneProvider
public void submitEntryRequest(ClientObject caller,
Object key,
String name)
TudeySceneProviderTudeySceneService.submitEntryRequest(java.lang.Object, java.lang.String) request.
submitEntryRequest in interface TudeySceneProviderpublic void entryAdded(TudeySceneModel.Entry entry)
TudeySceneModel.Observer
entryAdded in interface TudeySceneModel.Observer
public void entryUpdated(TudeySceneModel.Entry oentry,
TudeySceneModel.Entry nentry)
TudeySceneModel.Observer
entryUpdated in interface TudeySceneModel.Observerpublic void entryRemoved(TudeySceneModel.Entry oentry)
TudeySceneModel.Observer
entryRemoved in interface TudeySceneModel.Observerpublic 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 void postRunnable(Runnable runnable)
postRunnable in interface RunQueuepublic boolean isDispatchThread()
isDispatchThread in interface RunQueuepublic boolean isRunning()
isRunning in interface RunQueueprotected PlaceObject createPlaceObject()
createPlaceObject in class PlaceManagerprotected void didStartup()
didStartup in class SceneManagerprotected void createEntryLogics(TudeySceneModel sceneModel)
protected void didShutdown()
didShutdown in class SceneManagerprotected void bodyEntered(int bodyOid)
bodyEntered in class PlaceManagerprotected void bodyLeft(int bodyOid)
bodyLeft in class PlaceManagerprotected void placeBecameEmpty()
placeBecameEmpty in class PlaceManagerprotected void bodyUpdated(OccupantInfo info)
bodyUpdated in class PlaceManager
protected ClientLiaison createClientLiaison(BodyObject bodyobj,
CrowdSession session)
protected Logic getDefaultEntrance(BodyObject body)
protected void maybeAddDefaultEntrance(Logic logic)
protected EntryLogic addLogic(TudeySceneModel.Entry entry,
boolean notify)
notify - whether or not to notify the logic that it has been added.protected void removeLogic(Object key)
public void addMappings(Logic logic)
public void removeMappings(Logic logic)
public void tick()
protected ConfigReference<ActorConfig> getPawnConfig(BodyObject body)
null for none.
protected long idleTickPeriod()
protected SceneTicker getTicker()
protected static void updateTickProfile(Object participant,
long started)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||