public class MobManagerPlugin extends EnginePlugin implements MessageCallback, PerceptionUpdateTrigger
| 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 PerceptionFilter |
mobFilter |
protected PerceptionFilter |
mobRPCFilter |
protected long |
mobRPCSubId |
protected long |
mobSubId |
protected MobManagerPlugin.MobManagerFilter |
newRegionFilter |
protected long |
newRegionSub |
protected PathInfo |
pathInfo |
protected SubObjectFilter |
subObjectFilter |
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, unloadSubObjectSubscriptionNO_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.
|
void |
postUpdate(PerceptionFilter filter,
FilterUpdate.Instruction instruction,
AgentHandle sender,
SubscriptionHandle sub) |
void |
preUpdate(PerceptionFilter filter,
FilterUpdate.Instruction instruction,
AgentHandle sender,
SubscriptionHandle sub) |
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, 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, transferObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleMessagepublic java.util.List<OID> instances
protected SubObjectFilter subObjectFilter
protected MobManagerPlugin.MobManagerFilter newRegionFilter
protected long newRegionSub
protected PerceptionFilter mobFilter
protected long mobSubId
protected PerceptionFilter mobRPCFilter
protected long mobRPCSubId
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)
public void preUpdate(PerceptionFilter filter, FilterUpdate.Instruction instruction, AgentHandle sender, SubscriptionHandle sub)
preUpdate in interface PerceptionUpdateTriggerpublic void postUpdate(PerceptionFilter filter, FilterUpdate.Instruction instruction, AgentHandle sender, SubscriptionHandle sub)
postUpdate in interface PerceptionUpdateTrigger