|
|||||||||
Atavism Version 2018.1 | AGIS API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatavism.server.plugins.WorldManagerClient
public class WorldManagerClient
client for sending/getting messages to the WorldManagerPlugin
Nested Class Summary | |
---|---|
static class |
WorldManagerClient.AnimationMessage
notification from world server regarding animation. copies the animation list when setting/getting MSG_OID set to the notifyOid |
static class |
WorldManagerClient.ComMessage
notification from worldserver saying a mob said something MSG_OID is person saying something |
static class |
WorldManagerClient.ComReqMessage
notification from proxy/mobserver regarding chat msg MSG_OID is person saying something |
static class |
WorldManagerClient.DespawnedMessage
|
static class |
WorldManagerClient.DespawnReqMessage
|
static class |
WorldManagerClient.DetachMessage
notification from world server telling us to detach an item from an existing dc |
static class |
WorldManagerClient.DirLocOrientMessage
|
static class |
WorldManagerClient.DisplayContextMessage
notification from world server regarding the display context MSG_OID set to the dc subject |
static class |
WorldManagerClient.DisplayContextReqMessage
|
static class |
WorldManagerClient.ExtensionMessage
ExtensionMessage about an object (the subject). |
static class |
WorldManagerClient.FogMessage
|
static class |
WorldManagerClient.FreeObjectMessage
|
static class |
WorldManagerClient.FreeRemoteObjectMessage
|
static class |
WorldManagerClient.FreeRoadMessage
|
static class |
WorldManagerClient.GetObjectsInMessage
|
static class |
WorldManagerClient.HostInstanceMessage
|
static class |
WorldManagerClient.LoadSubObjectMessage
|
static class |
WorldManagerClient.MobPathCorrectionMessage
|
static class |
WorldManagerClient.MobPathMessage
|
static class |
WorldManagerClient.MobPathMessageBaseClass
|
static class |
WorldManagerClient.MobPathReqMessage
This message is constructed by the mobserver, and sent to the world manager and the clients. |
static class |
WorldManagerClient.ModifyDisplayContextMessage
Modify object display context message. |
static class |
WorldManagerClient.NewDirLightMessage
world server is telling an object about a dir light |
static class |
WorldManagerClient.NewRegionMessage
|
static class |
WorldManagerClient.NewRemoteObjectMessage
world manager is telling another world manager that one of its local objects has come into its fixed perceiver region includes target session id so it can filtered to the correct world manager |
static class |
WorldManagerClient.ObjectInfo
basic information about an object objType is the getType() call in Entity |
static class |
WorldManagerClient.ObjInfoReqMessage
|
static class |
WorldManagerClient.ObjInfoRespMessage
|
static class |
WorldManagerClient.OrientMessage
notification from worldserver |
static class |
WorldManagerClient.OrientReqMessage
notification from proxy |
static class |
WorldManagerClient.PerceiverRegionsMessage
usually from world server, when it first comes up sends this message out to announce its perceiver region currently the message is limited to 1 region. |
static class |
WorldManagerClient.PerceptionInfo
Information about a perceived object. |
static class |
WorldManagerClient.PlayerPathWMReqMessage
|
static class |
WorldManagerClient.RefreshWNodeMessage
messeage requesting the world manager to send an updateworldnode message to give everyone an update |
static class |
WorldManagerClient.ReparentWNodeReqMessage
|
static class |
WorldManagerClient.RoadInfo
information about a road. we dont use the AOObject because it would be confuses if you thought you could actually manipulate it as a real object. it would also have an oid, etc. |
static class |
WorldManagerClient.RoadMessage
Message from the WorldManagerPlugin saying that a particular mob/player perceives a road. |
static class |
WorldManagerClient.SetAmbientLightMessage
|
static class |
WorldManagerClient.SetWorldNodeReqMessage
request to the world manager asking to set the world node for the obj matching oid |
static class |
WorldManagerClient.SoundMessage
Control sounds played on the client. |
static class |
WorldManagerClient.SpawnedMessage
|
static class |
WorldManagerClient.SpawnReqMessage
|
static class |
WorldManagerClient.SysChatMessage
system message to be displayed in chat window for all players |
static class |
WorldManagerClient.TargetedComMessage
notification from worldserver saying a mob said something MSG_OID is person saying something |
static class |
WorldManagerClient.TargetedExtensionMessage
TargetedExtensionMessage is an extension message sent to a specific object (the target). |
static class |
WorldManagerClient.TargetedPropertyMessage
general property about an obj/mob this is a targeted state, such as whether a quest is available generalized states should use PropertyMessage |
static class |
WorldManagerClient.TerrainReqMessage
|
static class |
WorldManagerClient.UpdateMessage
Update the notifyOid about updateOid. |
static class |
WorldManagerClient.UpdateWorldNodeMessage
telling client/mob to update their world node |
static class |
WorldManagerClient.UpdateWorldNodeReqMessage
|
static class |
WorldManagerClient.WorldNodeCorrectMessage
telling client/mob to correct their location to match world node |
Constructor Summary | |
---|---|
WorldManagerClient()
|
Method Summary | |
---|---|
static void |
correctWorldNode(OID oid,
BasicWorldNode wnode)
corrects the client to match the world manager. this can be the result of a /goto command or interpolation errors |
static boolean |
despawn(OID oid)
Remove object from the world. |
static boolean |
despawn(OID oid,
Message preMessage,
Message postMessage)
Remove object from the world. |
static DisplayContext |
getDisplayContext(OID oid)
returns the current display context for this obj |
static WorldManagerClient.ObjectInfo |
getObjectInfo(OID oid)
|
static java.io.Serializable |
getObjectProperty(OID oid,
java.lang.String key)
Deprecated. Replaced by EnginePlugin.getObjectProperty(
atavism.server.engine.OID, Namespace, String) |
static java.util.List<OID> |
getObjectsIn(OID instanceOid,
Point loc,
java.lang.Integer radius,
ObjectType objectType)
|
static BasicWorldNode |
getWorldNode(OID oid)
queries the world manager for the world node of the object |
static java.lang.Boolean |
hostInstance(OID instanceOid,
java.lang.String wmPluginName)
|
static void |
modifyDisplayContext(OID oid,
byte action,
java.util.List<DisplayContext.Submesh> submeshes)
|
static void |
modifyDisplayContext(OID oid,
byte action,
java.lang.String base,
java.util.List<DisplayContext.Submesh> submeshes)
modifies the object's current display context. can either add or remove depending on the 'action' passed in. passed in submeshes which are/are not in the obj's dc are silently ignored |
static void |
refreshWNode(OID objId)
forces the world manager to send out a UpdateWorldNodeMessage so everyone subscribed to it gets an update |
static void |
reparentWorldNode(OID oid,
OID parentOid)
reparents the world node on the world manager under the specified parent |
static void |
sendChatMsg(OID objId,
java.lang.String chatterName,
int channelId,
java.lang.String text)
an object wants to send a chat msg - msg gets sent to world manager non-blocking call |
static void |
sendObjChatMsg(OID objOid,
int channelId,
java.lang.String text)
sends message to the object (this is not a request message) |
static void |
sendObjChatMsg(OID objOid,
java.lang.String senderName,
int channelId,
java.lang.String text)
sends message to the object (this is not a request message) |
static void |
sendOrientMsg(OID objId,
Quaternion q)
an object requests to change its orientation - msg gets send to wm non-blocking call |
static void |
sendPerceiverRegionsMsg(OID instanceOid,
Geometry region,
java.lang.String targetSessionId)
send out this world manager's perceiver region targetSessionId can be null |
static void |
sendSysChatMsg(java.lang.String text)
sends system chat message to all players (this is not a request message) |
static java.io.Serializable |
setObjectProperty(OID oid,
java.lang.String key,
java.io.Serializable val)
Deprecated. Replaced by EnginePlugin.setObjectProperty(
atavism.server.engine.OID, Namespace, String, Serializable) |
static void |
setObjectPropertyNoResponse(OID oid,
java.lang.String key,
java.io.Serializable val)
Deprecated. Replaced by EnginePlugin.setObjectPropertyNoResponse(
atavism.server.engine.OID, Namespace, String, Serializable) |
static boolean |
setWorldNode(OID oid,
BasicWorldNode wnode)
|
static boolean |
setWorldNode(OID oid,
BasicWorldNode wnode,
int flags)
sets/initializes the world node for this object. will over-ride any existing worldnode the object may have. it is an error to call this after the object has been spawned |
static java.lang.Integer |
spawn(OID oid)
Place object into the world. |
static java.lang.Integer |
spawn(OID oid,
Message preMessage,
Message postMessage)
Place object into the world. |
static void |
updateObject(OID notifyObj,
OID updateObj)
update notifyObj about updateObj - sends over all game related information about the object modelinfo, animation, sound this message returns immediately - the world manager plugin will send out the appropriate messages |
static void |
updateWorldNode(OID oid,
BasicWorldNode wnode)
updates the world node on the world manager. this call does not block if the update fails, you will get a dir/loc correction msg |
static void |
updateWorldNode(OID oid,
BasicWorldNode wnode,
boolean override)
|
static void |
updateWorldNode(OID oid,
BasicWorldNode wnode,
boolean override,
Message preMessage,
Message postMessage)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NO_FLAGS
public static final int SAVE_NOW
public static final byte modifyDisplayContextActionReplace
public static final byte modifyDisplayContextActionAdd
public static final byte modifyDisplayContextActionAddChild
public static final byte modifyDisplayContextActionRemove
public static final byte modifyDisplayContextActionRemoveChild
public static final java.lang.String WMGR_LAST_SAVED_PROP
public static MessageType MSG_TYPE_GET_WEATHER
public static java.lang.Long WMGR_SAVE_INTERVAL_MS
public static MessageType MSG_TYPE_NEW_DIRLIGHT
public static MessageType MSG_TYPE_FREE_OBJECT
public static MessageType MSG_TYPE_SET_AMBIENT
public static MessageType MSG_TYPE_TERRAIN_REQ
public static MessageType MSG_TYPE_OBJINFO_REQ
public static MessageType MSG_TYPE_DC_REQ
public static MessageType MSG_TYPE_FOG
public static MessageType MSG_TYPE_SPAWN_REQ
public static MessageType MSG_TYPE_SPAWNED
public static MessageType MSG_TYPE_DESPAWN_REQ
public static MessageType MSG_TYPE_DESPAWNED
public static MessageType MSG_TYPE_UPDATE_OBJECT
public static MessageType MSG_TYPE_DISPLAY_CONTEXT
public static MessageType MSG_TYPE_ANIMATION
public static MessageType MSG_TYPE_SETWNODE_REQ
public static MessageType MSG_TYPE_UPDATEWNODE_REQ
public static MessageType MSG_TYPE_GETWNODE_REQ
public static MessageType MSG_TYPE_GET_OBJECTS_IN
public static MessageType MSG_TYPE_TARGETED_PROPERTY
public static MessageType MSG_TYPE_COM_REQ
public static MessageType MSG_TYPE_COM
public static MessageType MSG_TYPE_SYS_CHAT
public static MessageType MSG_TYPE_UPDATEWNODE
public static MessageType MSG_TYPE_WNODECORRECT
public static MessageType MSG_TYPE_ORIENT_REQ
public static MessageType MSG_TYPE_ORIENT
public static MessageType MSG_TYPE_REFRESH_WNODE
public static MessageType MSG_TYPE_PERCEIVER_REGIONS
public static MessageType MSG_TYPE_NEW_REMOTE_OBJ
public static MessageType MSG_TYPE_FREE_REMOTE_OBJ
public static MessageType MSG_TYPE_ROAD
public static MessageType MSG_TYPE_FREE_ROAD
public static MessageType MSG_TYPE_NEW_REGION
public static MessageType MSG_TYPE_SOUND
public static MessageType MSG_TYPE_MODIFY_DC
public static MessageType MSG_TYPE_DETACH
public static MessageType MSG_TYPE_REPARENT_WNODE_REQ
public static MessageType MSG_TYPE_EXTENSION
public static MessageType MSG_TYPE_MOB_PATH
public static MessageType MSG_TYPE_MOB_PATH_REQ
public static MessageType MSG_TYPE_MOB_PATH_CORRECTION
public static MessageType MSG_TYPE_DIR_LOC_ORIENT
public static MessageType MSG_TYPE_PERCEPTION
public static MessageType MSG_TYPE_PERCEPTION_INFO
public static MessageType MSG_TYPE_P2P_EXTENSION
public static MessageType MSG_TYPE_HOST_INSTANCE
public static MessageType MSG_TYPE_PLAYER_PATH_WM_REQ
public static final java.lang.String WORLD_PROP_NOMOVE
public static final java.lang.String WORLD_PROP_NOTURN
public static final java.lang.String ACCOUNT_PROPERTY
public static java.lang.String TEMPL_LOC
public static java.lang.String TEMPL_INSTANCE
public static java.lang.String TEMPL_NAME
public static java.lang.String TEMPL_ORIENT
public static java.lang.String TEMPL_SCALE
public static java.lang.String TEMPL_PERCEPTION_RADIUS
public static java.lang.String TEMPL_FOLLOWS_TERRAIN
public static java.lang.String TEMPL_RUN_THRESHOLD
public static java.lang.String TEMPL_TERRAIN_DECAL_DATA
public static java.lang.String TEMPL_SOUND_DATA_LIST
public static java.lang.String TEMPL_ID
public static java.lang.String TEMPL_OBJECT_TYPE
public static ObjectType TEMPL_OBJECT_TYPE_MOB
public static ObjectType TEMPL_OBJECT_TYPE_PLAYER
public static ObjectType TEMPL_OBJECT_TYPE_LIGHT
public static ObjectType TEMPL_OBJECT_TYPE_ITEM
public static ObjectType TEMPL_OBJECT_TYPE_STRUCTURE
public static ObjectType TEMPL_OBJECT_TYPE_TERRAIN_DECAL
public static ObjectType TEMPL_OBJECT_TYPE_POINT_SOUND
public static ObjectType TEMPL_OBJECT_TYPE_MARKER
public static java.lang.String TEMPL_DISPLAY_CONTEXT
public static final java.lang.String TEMPL_WORLDMGR_NAME
public static java.lang.String MOB_PATH_PROPERTY
public static java.lang.String MSG_PROP_LOC
public static Namespace NAMESPACE
public static Namespace INSTANCE_NAMESPACE
Constructor Detail |
---|
public WorldManagerClient()
Method Detail |
---|
public static boolean setWorldNode(OID oid, BasicWorldNode wnode)
public static boolean setWorldNode(OID oid, BasicWorldNode wnode, int flags)
public static void updateWorldNode(OID oid, BasicWorldNode wnode)
public static void updateWorldNode(OID oid, BasicWorldNode wnode, boolean override)
public static void updateWorldNode(OID oid, BasicWorldNode wnode, boolean override, Message preMessage, Message postMessage)
public static BasicWorldNode getWorldNode(OID oid)
public static void correctWorldNode(OID oid, BasicWorldNode wnode)
public static void reparentWorldNode(OID oid, OID parentOid)
public static java.lang.Integer spawn(OID oid)
#spawn(java.lang.Long,atavism.msgsys.Message,atavism.msgsys.Message)
public static java.lang.Integer spawn(OID oid, Message preMessage, Message postMessage)
preMessage
is broadcast just before spawning the object. The postMessage
is broadcast just after spawning the object. The pre/post
messages will bracket the object's first PerceptionMessage.
oid
- Object to spawn.preMessage
- Message to broadcast before spawning.postMessage
- Message to broadcast after spawning.
public static boolean despawn(OID oid)
#despawn(java.lang.Long,atavism.msgsys.Message,atavism.msgsys.Message)
public static boolean despawn(OID oid, Message preMessage, Message postMessage)
preMessage
is broadcast just before despawning the object. The postMessage
is broadcast just after despawning the object. The pre/post
messages will bracket the object's final PerceptionMessage.
oid
- Object to despawn.preMessage
- Message to broadcast before despawning.postMessage
- Message to broadcast after despawning.
public static WorldManagerClient.ObjectInfo getObjectInfo(OID oid)
public static java.util.List<OID> getObjectsIn(OID instanceOid, Point loc, java.lang.Integer radius, ObjectType objectType)
public static DisplayContext getDisplayContext(OID oid)
public static void modifyDisplayContext(OID oid, byte action, java.lang.String base, java.util.List<DisplayContext.Submesh> submeshes)
public static void modifyDisplayContext(OID oid, byte action, java.util.List<DisplayContext.Submesh> submeshes)
public static void updateObject(OID notifyObj, OID updateObj)
public static void refreshWNode(OID objId)
public static void sendChatMsg(OID objId, java.lang.String chatterName, int channelId, java.lang.String text)
public static void sendObjChatMsg(OID objOid, int channelId, java.lang.String text)
public static void sendObjChatMsg(OID objOid, java.lang.String senderName, int channelId, java.lang.String text)
public static void sendSysChatMsg(java.lang.String text)
public static void sendOrientMsg(OID objId, Quaternion q)
public static void sendPerceiverRegionsMsg(OID instanceOid, Geometry region, java.lang.String targetSessionId)
public static java.lang.Boolean hostInstance(OID instanceOid, java.lang.String wmPluginName)
@Deprecated public static java.io.Serializable getObjectProperty(OID oid, java.lang.String key)
EnginePlugin.getObjectProperty(
atavism.server.engine.OID, Namespace, String)
oid
- oid for the object with the propertykey
- string for the key/value pair
@Deprecated public static java.io.Serializable setObjectProperty(OID oid, java.lang.String key, java.io.Serializable val)
EnginePlugin.setObjectProperty(
atavism.server.engine.OID, Namespace, String, Serializable)
oid
- oid for the object with the propertykey
- string for the key/value pairval
- Serializable the value for key/value pair
@Deprecated public static void setObjectPropertyNoResponse(OID oid, java.lang.String key, java.io.Serializable val)
EnginePlugin.setObjectPropertyNoResponse(
atavism.server.engine.OID, Namespace, String, Serializable)
oid
- oid for the object with the propertykey
- string for the key/value pairval
- Serializable the value for key/value pair
|
Copyright © 2018 Dragonsan Studios Sp. z o.o. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |