public class MobManagerPlugin extends EnginePlugin
| Modifier and Type | Class and Description |
|---|---|
static class |
MobManagerPlugin.CombatInstance |
static class |
MobManagerPlugin.MobManagerFilter |
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 |
|---|---|
protected boolean |
askedForPathInfo |
java.util.List<OID> |
instances |
protected static Logger |
log |
protected java.util.Set<MessageType> |
mobFilterTypes |
protected java.util.Set<MessageType> |
mobRPCFilterTypes |
protected MobManagerPlugin.MobManagerFilter |
newRegionFilter |
protected long |
newRegionSub |
protected PathInfo |
pathInfo |
protected java.util.Set<Namespace> |
subObjectFilterNamespaces |
protected java.util.Set<MessageType> |
subObjectFilterTypes |
DevMode, dumpAllThreadSubscription, dumpAllThreadSubscriptionLock, lock, MSG_TYPE_DUMP_ALL_THREAD_STACKS, MSG_TYPE_GET_PROPERTY, MSG_TYPE_GET_PROPERTY_NAMES, MSG_TYPE_PLUGIN_STATE, MSG_TYPE_RELOAD_TEMPLATES, MSG_TYPE_SET_PROPERTY, MSG_TYPE_SET_PROPERTY_NONBLOCK, MSG_TYPE_TRANSFER_OBJECT, pluginStateSubscription, propertySubscription, selectionFilter, selectionSubscription, subObjectSubscriptionNO_FLAGS, RESPONSE_EXPECTED| Constructor and Description |
|---|
MobManagerPlugin() |
| Modifier and Type | Method and Description |
|---|---|
static ObjectStub |
createObject(int templateID,
OID instanceOid,
Point loc,
Quaternion orient) |
static ObjectStub |
createObject(int templateID,
OID instanceOid,
Point loc,
Quaternion orient,
boolean followsTerrain) |
static ObjectStub |
createObject(int templateID,
Template override,
OID instanceOid) |
PathInfo |
getPathInfo() |
static java.lang.Class |
getSpawnGeneratorClass(java.lang.String name)
Get a registered spawn generator class.
|
java.util.Map<java.lang.String,java.lang.String> |
getStatusMap()
Override to provide plugin status.
|
static java.util.List<ObjectType> |
getTrackedObjectTypes()
Get the object types to track.
|
static ObjectTracker |
getTracker(OID instanceOID) |
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() |
static void |
registerSpawnGeneratorClass(java.lang.String name,
java.lang.Class spawnGenClass)
Register a spawn generator class.
|
static void |
removeTracker(OID instanceOid) |
static void |
setAggroRadiusTracker(OID mob,
OID target,
int reactionRadius,
OID instanceOID) |
void |
setPathInfo(PathInfo pathInfo) |
static void |
setTrackedObjectTypes(java.util.Collection<ObjectType> objectTypes)
Set the object types to track.
|
protected void |
subscribeForMob(OID oid) |
protected void |
subscribeForObject(OID masterOid) |
protected void |
unsubscribeForMob(OID oid) |
protected void |
unsubscribeForObject(OID oid) |
activate, createMBeanInstance, createSubscription, getHookManager, 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, ReloadTemplates, sendSubObjectResponse, sendSubObjectResponse, sendSubObjectResponse, setName, setObjectProperties, setObjectProperties, setObjectProperties, setObjectPropertiesNoResponse, setObjectPropertiesNoResponse, setObjectPropertiesNoResponse, setObjectProperty, setObjectPropertyNoResponse, setPercentCPULoad, setPluginAvailable, setPluginInfo, setPluginType, setPropertyImpl, transferObjectpublic java.util.List<OID> instances
protected java.util.Set<MessageType> subObjectFilterTypes
protected java.util.Set<Namespace> subObjectFilterNamespaces
protected MobManagerPlugin.MobManagerFilter newRegionFilter
protected long newRegionSub
protected final java.util.Set<MessageType> mobFilterTypes
protected final java.util.Set<MessageType> mobRPCFilterTypes
protected static final Logger log
protected PathInfo pathInfo
protected boolean askedForPathInfo
public void onActivate()
EnginePluginonActivate in class EnginePluginprotected void registerHooks()
public java.util.Map<java.lang.String,java.lang.String> getStatusMap()
EnginePlugingetStatusMap in interface StatusMapCallbackgetStatusMap in class EnginePluginprotected void subscribeForMob(OID oid)
protected void subscribeForObject(OID masterOid)
protected void unsubscribeForMob(OID oid)
protected void unsubscribeForObject(OID oid)
public static ObjectStub createObject(int templateID, OID instanceOid, Point loc, Quaternion orient)
public static ObjectStub createObject(int templateID, OID instanceOid, Point loc, Quaternion orient, boolean followsTerrain)
public static ObjectStub createObject(int templateID, Template override, OID instanceOid)
public PathInfo getPathInfo()
public void setPathInfo(PathInfo pathInfo)
public static void setTrackedObjectTypes(java.util.Collection<ObjectType> objectTypes)
public static java.util.List<ObjectType> getTrackedObjectTypes()
public static ObjectTracker getTracker(OID instanceOID)
public static void removeTracker(OID instanceOid)
public static void setAggroRadiusTracker(OID mob, OID target, int reactionRadius, OID instanceOID)
public static void registerSpawnGeneratorClass(java.lang.String name,
java.lang.Class spawnGenClass)
name - Spawn generator class registered name.spawnGenClass - Spawn generator class, must be a
SpawnGenerator sub-class.public static java.lang.Class getSpawnGeneratorClass(java.lang.String name)