atavism.agis.plugins
Class FactionPlugin
java.lang.Object
atavism.server.engine.EnginePlugin
atavism.agis.plugins.FactionPlugin
- All Implemented Interfaces:
- MessageCallback, StatusMapCallback
public class FactionPlugin
- extends EnginePlugin
Handles faction and attitude related messages, calculates the interaction
state between the objects involved and sends out the messages to alert
other parts of the server of the interaction state.
- Author:
- Andrew
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 |
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 |
Methods inherited from class atavism.server.engine.EnginePlugin |
activate, createMBeanInstance, createSubscription, getHookManager, getMessageHandler, 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 |
FACTION_PLUGIN_NAME
public static java.lang.String FACTION_PLUGIN_NAME
objectsInRange
protected java.util.HashMap<OID,java.util.ArrayList<OID>> objectsInRange
subjectOids
protected java.util.LinkedList<OID> subjectOids
targetOids
protected java.util.LinkedList<OID> targetOids
targetTypes
protected java.util.LinkedList<java.lang.Integer> targetTypes
HatedRep
public static final int HatedRep
- See Also:
- Constant Field Values
DislikedRep
public static final int DislikedRep
- See Also:
- Constant Field Values
NeutralRep
public static final int NeutralRep
- See Also:
- Constant Field Values
FriendlyRep
public static final int FriendlyRep
- See Also:
- Constant Field Values
HonouredRep
public static final int HonouredRep
- See Also:
- Constant Field Values
ExaltedRep
public static final int ExaltedRep
- See Also:
- Constant Field Values
Hated
public static final int Hated
- See Also:
- Constant Field Values
Disliked
public static final int Disliked
- See Also:
- Constant Field Values
Neutral
public static final int Neutral
- See Also:
- Constant Field Values
Friendly
public static final int Friendly
- See Also:
- Constant Field Values
Honoured
public static final int Honoured
- See Also:
- Constant Field Values
Exalted
public static final int Exalted
- See Also:
- Constant Field Values
Attackable
public static final int Attackable
- See Also:
- Constant Field Values
Healable
public static final int Healable
- See Also:
- Constant Field Values
Neither
public static final int Neither
- See Also:
- Constant Field Values
AGGRO_RADIUS
public static int AGGRO_RADIUS
perceptionFilter
protected PerceptionFilter perceptionFilter
perceptionSubId
protected long perceptionSubId
FactionPlugin
public FactionPlugin()
getName
public java.lang.String getName()
- Description copied from class:
EnginePlugin
- Returns the name of the plugin. Engine.registerPlugin() will call this
method and associate the name with the plugin, which can be retrieved by
calling Engine.getPlugin()
- Overrides:
getName
in class EnginePlugin
- Returns:
- the name of this plugin
- See Also:
EnginePlugin.setName(String)
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
getFactionStateInfo
public static FactionStateInfo getFactionStateInfo(OID oid)
registerFactionStateInfo
public static void registerFactionStateInfo(FactionStateInfo qsInfo)
addToTargetTypeLists
protected void addToTargetTypeLists(OID subjectOid,
OID targetOid,
int targetType)
calculateStanding
public static int calculateStanding(int reputation)