Version 1.5APIs subject to change!

multiverse.server.plugins
Class MobManagerPlugin

java.lang.Object
  extended by multiverse.server.engine.EnginePlugin
      extended by multiverse.server.plugins.MobManagerPlugin
All Implemented Interfaces:
MessageCallback, StatusMapCallback

public class MobManagerPlugin
extends EnginePlugin

handles perceiver updates, interpolation


Nested Class Summary
 
Nested classes/interfaces inherited from class multiverse.server.engine.EnginePlugin
EnginePlugin.DeleteHook, EnginePlugin.DeleteSubObjHook, EnginePlugin.GenerateSubObjectHook, EnginePlugin.GetPropertyMessage, 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 multiverse.server.engine.EnginePlugin
deleteSubObjectSubscription, dumpAllThreadSubscription, dumpAllThreadSubscriptionLock, loadSubObjectSubscription, lock, MSG_TYPE_DUMP_ALL_THREAD_STACKS, MSG_TYPE_GET_PROPERTY, 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 multiverse.msgsys.MessageCallback
NO_FLAGS, RESPONSE_EXPECTED
 
Constructor Summary
MobManagerPlugin()
           
 
Method Summary
static ObjectStub createObject(java.lang.String templateName, long instanceOid, Point loc, Quaternion orient)
           
static ObjectStub createObject(java.lang.String templateName, long instanceOid, Point loc, Quaternion orient, boolean followsTerrain)
           
static ObjectStub createObject(java.lang.String templateName, Template override, java.lang.Long 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(long 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(long instanceOid)
           
 void setPathInfo(PathInfo pathInfo)
           
static void setTrackedObjectTypes(java.util.Collection<ObjectType> objectTypes)
          Set the object types to track.
 
Methods inherited from class multiverse.server.engine.EnginePlugin
activate, createMBeanInstance, createSubscription, getHookManager, getMessageHandler, getName, getObjectLockManager, getObjectProperties, getObjectProperties, getObjectProperty, getPercentCPULoad, getPluginInfo, getPluginNamespaces, getPluginState, getPluginStatus, getPluginType, getPropertyImpl, getStatusMap, handleMessage, handleMessageImpl, logDepsOutstanding, processKeysAndValues, registerActivateHook, registerDeleteHook, registerLoadHook, registerPluginNamespace, registerPluginNamespaces, registerPluginNamespaces, registerPluginNamespaces, registerSaveHook, registerTransferHook, registerUnloadHook, sendSubObjectResponse, sendSubObjectResponse, sendSubObjectResponse, setMessageHandler, setName, setObjectProperties, setObjectProperties, setObjectPropertiesNoResponse, setObjectPropertiesNoResponse, setObjectProperty, setObjectPropertyNoResponse, setPercentCPULoad, 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(java.lang.String templateName,
                                      long instanceOid,
                                      Point loc,
                                      Quaternion orient)

createObject

public static ObjectStub createObject(java.lang.String templateName,
                                      long instanceOid,
                                      Point loc,
                                      Quaternion orient,
                                      boolean followsTerrain)

createObject

public static ObjectStub createObject(java.lang.String templateName,
                                      Template override,
                                      java.lang.Long 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(long instanceOid)

removeTracker

public static void removeTracker(long instanceOid)

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 © 2008 The Multiverse Network, Inc.