Atavism Version 2018.1AGIS API

atavism.server.plugins
Class MobManagerPlugin

java.lang.Object
  extended by atavism.server.engine.EnginePlugin
      extended by atavism.server.plugins.MobManagerPlugin
All Implemented Interfaces:
MessageCallback, StatusMapCallback
Direct Known Subclasses:
AgisMobPlugin

public class MobManagerPlugin
extends EnginePlugin

handles perceiver updates, interpolation


Nested Class Summary
 
Nested classes/interfaces inherited from class atavism.server.engine.EnginePlugin
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
 
Field Summary
protected  boolean askedForPathInfo
           
protected static Logger log
           
protected  PathInfo pathInfo
           
 
Fields inherited from class atavism.server.engine.EnginePlugin
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
 
Fields inherited from interface atavism.msgsys.MessageCallback
NO_FLAGS, RESPONSE_EXPECTED
 
Constructor Summary
MobManagerPlugin()
           
 
Method Summary
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.
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)
           
 void setPathInfo(PathInfo pathInfo)
           
static void setTrackedObjectTypes(java.util.Collection<ObjectType> objectTypes)
          Set the object types to track.
 
Methods inherited from class atavism.server.engine.EnginePlugin
activate, createMBeanInstance, createSubscription, getHookManager, getMessageHandler, getName, getObjectLockManager, getObjectProperties, getObjectProperties, getObjectProperty, getObjectPropertyNames, getPercentCPULoad, getPluginAvailable, getPluginInfo, getPluginNamespaces, getPluginState, getPluginStatus, getPluginType, getPropertyImpl, getPropertyNamesImpl, getStatusMap, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final Logger log

pathInfo

protected PathInfo pathInfo

askedForPathInfo

protected boolean askedForPathInfo
Constructor Detail

MobManagerPlugin

public MobManagerPlugin()
Method Detail

onActivate

public void onActivate()
Description copied from class: EnginePlugin
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. this is an alternative to calling registerActivateHook()

Overrides:
onActivate in class EnginePlugin

registerHooks

protected void registerHooks()

createObject

public static ObjectStub createObject(int templateID,
                                      OID instanceOid,
                                      Point loc,
                                      Quaternion orient)

createObject

public static ObjectStub createObject(int templateID,
                                      OID instanceOid,
                                      Point loc,
                                      Quaternion orient,
                                      boolean followsTerrain)

createObject

public static ObjectStub createObject(int templateID,
                                      Template override,
                                      OID instanceOid)

getPathInfo

public PathInfo getPathInfo()

setPathInfo

public void setPathInfo(PathInfo pathInfo)

setTrackedObjectTypes

public static void setTrackedObjectTypes(java.util.Collection<ObjectType> objectTypes)
Set the object types to track. By default, all object types are tracked. This should be set before an instance is created or loaded. Changing the setting has no effect on existing instances.


getTrackedObjectTypes

public static java.util.List<ObjectType> getTrackedObjectTypes()
Get the object types to track.


getTracker

public static ObjectTracker getTracker(OID instanceOID)

removeTracker

public static void removeTracker(OID instanceOid)

setAggroRadiusTracker

public static void setAggroRadiusTracker(OID mob,
                                         OID target,
                                         int reactionRadius)

registerSpawnGeneratorClass

public static void registerSpawnGeneratorClass(java.lang.String name,
                                               java.lang.Class spawnGenClass)
Register a spawn generator class.

Parameters:
name - Spawn generator class registered name.
spawnGenClass - Spawn generator class, must be a SpawnGenerator sub-class.

getSpawnGeneratorClass

public static java.lang.Class getSpawnGeneratorClass(java.lang.String name)
Get a registered spawn generator class.



Copyright © 2018 Dragonsan Studios Sp. z o.o.