public class StageSceneManager extends SpotSceneManager implements StageSceneProvider
CLUSTER_CHAT_TYPE, CLUSTER_FULL, INVALID_LOCATION, LOCATION_OCCUPIED, NO_SUCH_CLUSTER, NO_SUCH_PORTALBROADCAST_ACCESS, BROADCAST_MODE, CHAT_ACCESS, CHAT_CHANNEL_NOTIFICATION, CHAT_NOTIFICATION, DEFAULT_IDLE_TIME, DEFAULT_MODE, EMOTE_MODE, IDLE_TIME_KEY, LAST_MODE, PLACE_CHAT_TYPE, SHOUT_MODE, SUCCESS, THINK_MODE, USER_CHAT_TYPE, USER_DISCONNECTED, USER_NOT_ONLINE, XLATE_MODESSCENE_UPDATE, WHIRLED_GROUP| Constructor and Description |
|---|
StageSceneManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addObject(com.threerings.presents.data.ClientObject caller,
com.threerings.miso.data.ObjectInfo info,
com.threerings.presents.client.InvocationService.ConfirmListener listener)
|
boolean |
addObject(com.threerings.miso.data.ObjectInfo info,
boolean killOverlap,
boolean allowOverlap)
Adds the supplied object to this scene.
|
com.threerings.media.util.AStarPathUtil.TraversalPred |
getCanStandPred()
Returns a traversal predicate for use with
StageSceneUtil.findStandingSpot(java.awt.Rectangle, int, com.threerings.media.util.AStarPathUtil.TraversalPred, java.lang.Object, java.awt.Point, int) that
validates whether a player can stand in the searched spots. |
boolean |
isPassable(int tx,
int ty)
Returns true if the specified tile coordinate is passable (the base
tile is passable and it is not in the footprint of an object).
|
boolean |
mayStandAtLocation(com.threerings.crowd.data.BodyObject source,
StageLocation loc)
Called by NPPs to determine whether or not they can stand at the
specified location.
|
void |
removeObjects(com.threerings.presents.data.ClientObject caller,
com.threerings.miso.data.ObjectInfo[] info,
com.threerings.presents.client.InvocationService.ConfirmListener listener)
|
void |
setColor(int classId,
int colorId)
Changes the default colorization for the specified color class.
|
clearEnteringBody, mapEnteringBody, mayTraversePortal, moveBodyToDefaultPortal, willTraversePortalgetLocation, getScene, getUpdates, isPersistent, whereaddDelegate, applyToDelegates, applyToOccupants, bodyWillEnter, bodyWillLeave, checkPermissions, getConfig, getPlaceObject, init, isValidSpeaker, messageReceived, ratifyBodyEntry, registerMessageHandler, shutdown, startup, toString, updateOccupantInfopublic com.threerings.media.util.AStarPathUtil.TraversalPred getCanStandPred()
StageSceneUtil.findStandingSpot(java.awt.Rectangle, int, com.threerings.media.util.AStarPathUtil.TraversalPred, java.lang.Object, java.awt.Point, int) that
validates whether a player can stand in the searched spots.public boolean addObject(com.threerings.miso.data.ObjectInfo info,
boolean killOverlap,
boolean allowOverlap)
killOverlap - if true, overlapping object will be removed, and the allowOverlap
argument will be ignored.allowOverlap - if true, overlapping objects will be allowed but one must be *very*
careful to ensure that they know what they are doing (i.e. the objects have render priorities
that correctly handle the overlap).public void setColor(int classId,
int colorId)
public boolean isPassable(int tx,
int ty)
public boolean mayStandAtLocation(com.threerings.crowd.data.BodyObject source,
StageLocation loc)
public void addObject(com.threerings.presents.data.ClientObject caller,
com.threerings.miso.data.ObjectInfo info,
com.threerings.presents.client.InvocationService.ConfirmListener listener)
throws com.threerings.presents.server.InvocationException
StageSceneProviderStageSceneService.addObject(com.threerings.miso.data.ObjectInfo, com.threerings.presents.client.InvocationService.ConfirmListener) request.addObject in interface StageSceneProvidercom.threerings.presents.server.InvocationExceptionpublic void removeObjects(com.threerings.presents.data.ClientObject caller,
com.threerings.miso.data.ObjectInfo[] info,
com.threerings.presents.client.InvocationService.ConfirmListener listener)
throws com.threerings.presents.server.InvocationException
StageSceneProviderStageSceneService.removeObjects(com.threerings.miso.data.ObjectInfo[], com.threerings.presents.client.InvocationService.ConfirmListener) request.removeObjects in interface StageSceneProvidercom.threerings.presents.server.InvocationExceptionCopyright © 2015. All rights reserved.