public class AgisWorldManagerPlugin extends WorldManagerPlugin
WorldManagerPlugin.HostInstanceFilter, WorldManagerPlugin.LocationNamespaceFilter, WorldManagerPlugin.PathObjectCache, WorldManagerPlugin.WorldManagerFilter, WorldManagerPlugin.WorldManagerInstance, WorldManagerPlugin.WorldManagerTransferFilter
EnginePlugin.DeleteHook, EnginePlugin.DeleteSubObjHook, EnginePlugin.GenerateSubObjectHook, EnginePlugin.GetPropertyMessage, EnginePlugin.GetPropertyNamesMessage, EnginePlugin.LoadHook, EnginePlugin.LoadSubObjHook, EnginePlugin.PluginActivateHook, EnginePlugin.PluginStateMessage, EnginePlugin.SaveHook, EnginePlugin.SaveSubObjHook, EnginePlugin.SetPropertyMessage, EnginePlugin.SubObjData, EnginePlugin.TransferFilter, EnginePlugin.TransferObjectMessage, EnginePlugin.UnloadHook, EnginePlugin.UnloadSubObjHook
Modifier and Type | Field and Description |
---|---|
static java.lang.Float |
defaultRunThreshold |
static int |
MOVEMENT_STATE_FLYING |
static int |
MOVEMENT_STATE_RUNNING |
static int |
MOVEMENT_STATE_SWIMMING |
static java.lang.String |
PROP_ACTION_STATE |
static java.lang.String |
PROP_FOLLOW_TERRAIN |
static java.lang.String |
PROP_MOVEMENT_SPEED |
static java.lang.String |
PROP_MOVEMENT_STATE |
protected int |
serverDay |
protected int |
serverMonth |
protected int |
serverYear |
protected int |
waterHeight |
static java.lang.String |
WORLD_TIME_ZONE |
askedForPathInfo, defaultWorldManagerHysteresis, log, mobFilter, mobRPCFilter, mobRPCSubId, mobSubId, newRegionFilter, newRegionSub, pathInfo, pathObjectCache, propertyExclusions, quadtrees, REGION_MEMBERSHIP, regionTriggers, structFilter, structRPCFilter, structRPCSubId, structSubId, subObjectFilter, updater
deleteSubObjectSubscription, dumpAllThreadSubscription, dumpAllThreadSubscriptionLock, loadSubObjectSubscription, lock, MSG_TYPE_DUMP_ALL_THREAD_STACKS, MSG_TYPE_GET_PROPERTY, MSG_TYPE_GET_PROPERTY_NAMES, MSG_TYPE_PLUGIN_STATE, MSG_TYPE_SET_PROPERTY, MSG_TYPE_SET_PROPERTY_NONBLOCK, MSG_TYPE_TRANSFER_OBJECT, pluginStateSubscription, propertySubscription, saveSubObjectSubscription, selectionFilter, selectionSubscription, setSubObjectPersistenceSubscription, subObjectSubscription, unloadSubObjectSubscription
NO_FLAGS, RESPONSE_EXPECTED
Constructor and Description |
---|
AgisWorldManagerPlugin() |
Modifier and Type | Method and Description |
---|---|
protected AOObject |
generateWorldManagerSubObject(Template template,
OID masterOid)
Override this method to change what kind of object is created
for the sub object hook.
|
protected DisplayContext |
getDisplayContext(OID objOid)
gets the current display context - used in the base world manager plugin
when it needs to send the display context to the proxy - this gets called
by the wmgr via the proxy upon logging in
|
void |
onActivate()
for developers extending the EnginePlugin object, it may
be easier to use the onActivate() method which gets
called when the plugin is being activated by the Engine.
|
protected void |
registerHooks() |
protected void |
sendDCMessage(AOObject obj,
boolean forceInstantLoad)
creates a DisplayContextMessage with notifyOid set as its MSG_OID.
|
protected void |
sendDCMessage(OID oid,
DisplayContext dc,
boolean forceInstantLoad)
creates a DisplayContextMessage with notifyOid set as its MSG_OID.
|
protected void |
sendPropertyMessage(OID notifyOid,
AOObject updateObj)
sends over health, int, str, etc.
|
protected void |
sendTargetedPropertyMessage(OID targetOid,
AOObject updateObj) |
despawnObject, freeObjectForFixedPerceiver, getInstanceInfoString, getPathInfo, getPerceiverOid, getPropertyExclusions, getStatusMap, getWorldManagerEntity, getWorldManagerEntityOrError, makeFreeObjectForFixedPerceiverMessage, makeNewObjectForFixedPerceiverMessage, makeObjectInfo, makePerceptionInfo, newObjectForFixedPerceiver, postUpdate, preUpdate, processNewsAndFrees, registerRegionTrigger, registerWorldManagerEntity, removeWorldManagerEntity, sendDCMessage, sendObjectSoundMessage, sendRegionUpdate, sendWMMessage, sendWNodeMessage, setPathInfo, spawnObject, startUpdater, subscribeForMob, subscribeForObject, unsubscribeForMob, unsubscribeForObject
activate, createMBeanInstance, createSubscription, getHookManager, getMessageHandler, getName, getObjectLockManager, getObjectProperties, getObjectProperties, getObjectProperty, getObjectPropertyNames, getPercentCPULoad, getPluginAvailable, getPluginInfo, getPluginNamespaces, getPluginState, getPluginStatus, getPluginType, getPropertyImpl, getPropertyNamesImpl, handleMessage, handleMessageImpl, logDepsOutstanding, processKeysAndValues, registerActivateHook, registerDeleteHook, registerLoadHook, registerPluginNamespace, registerPluginNamespaces, registerPluginNamespaces, registerPluginNamespaces, registerSaveHook, registerTransferHook, registerUnloadHook, sendSubObjectResponse, sendSubObjectResponse, sendSubObjectResponse, setMessageHandler, setName, setObjectProperties, setObjectProperties, setObjectProperties, setObjectPropertiesNoResponse, setObjectPropertiesNoResponse, setObjectPropertiesNoResponse, setObjectProperty, setObjectPropertyNoResponse, setPercentCPULoad, setPluginAvailable, setPluginInfo, setPluginType, setPropertyImpl, transferObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handleMessage
public static java.lang.Float defaultRunThreshold
protected int waterHeight
protected int serverYear
protected int serverMonth
protected int serverDay
public static java.lang.String WORLD_TIME_ZONE
public static final int MOVEMENT_STATE_RUNNING
public static final int MOVEMENT_STATE_SWIMMING
public static final int MOVEMENT_STATE_FLYING
public static final java.lang.String PROP_FOLLOW_TERRAIN
public static final java.lang.String PROP_MOVEMENT_STATE
public static final java.lang.String PROP_MOVEMENT_SPEED
public static final java.lang.String PROP_ACTION_STATE
public void onActivate()
EnginePlugin
onActivate
in class WorldManagerPlugin
protected void registerHooks()
registerHooks
in class WorldManagerPlugin
protected AOObject generateWorldManagerSubObject(Template template, OID masterOid)
generateWorldManagerSubObject
in class WorldManagerPlugin
protected void sendDCMessage(AOObject obj, boolean forceInstantLoad)
protected void sendDCMessage(OID oid, DisplayContext dc, boolean forceInstantLoad)
protected void sendPropertyMessage(OID notifyOid, AOObject updateObj)
sendPropertyMessage
in class WorldManagerPlugin
protected void sendTargetedPropertyMessage(OID targetOid, AOObject updateObj)
sendTargetedPropertyMessage
in class WorldManagerPlugin
protected DisplayContext getDisplayContext(OID objOid)
getDisplayContext
in class WorldManagerPlugin