Atavism Version 2018.1AGIS API

atavism.agis.plugins
Class CraftingPlugin

java.lang.Object
  extended by atavism.server.engine.EnginePlugin
      extended by atavism.agis.plugins.CraftingPlugin
All Implemented Interfaces:
MessageCallback, StatusMapCallback

public class CraftingPlugin
extends EnginePlugin

Plugin for managing Crafting and Resource gathering.

Author:
Andrew Harrison

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
static boolean AUTO_PICKUP_RESOURCES
           
static boolean CAN_CRAFT_WHILE_MOUNTED
           
static boolean CAN_HARVEST_WHILE_MOUNTED
           
static java.lang.String CRAFTING_PLUGIN_NAME
           
static boolean DELETE_CRAFTING_RECIPE_ON_USE
           
static boolean GAIN_SKILL_AFTER_MAX
           
static int GRID_SIZE
           
static boolean RESOURCE_COUNT_IS_LOOT_COUNT
           
static boolean RESOURCE_DROPS_ON_FAIL
           
static boolean RESOURCE_GATHER_CAN_FAIL
           
static int RESOURCE_GATHER_DISTANCE
           
static int RESOURCE_GROUP_SIZE
           
static int RESOURCE_HARVEST_XP_REWARD
           
static int SKINNING_SKILL_ID
           
static java.lang.String SKINNING_WEAPON_REQ
           
static java.lang.String TASK_CRAFTING
           
static java.lang.String TASK_GATHERING
           
static boolean USE_RESOURCE_GROUPS
           
 
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
CraftingPlugin()
           
 
Method Summary
 java.lang.String getName()
          Returns the name of the plugin.
 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()
           
 
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
 

Field Detail

CRAFTING_PLUGIN_NAME

public static java.lang.String CRAFTING_PLUGIN_NAME

GRID_SIZE

public static int GRID_SIZE

RESOURCE_DROPS_ON_FAIL

public static boolean RESOURCE_DROPS_ON_FAIL

GAIN_SKILL_AFTER_MAX

public static boolean GAIN_SKILL_AFTER_MAX

AUTO_PICKUP_RESOURCES

public static boolean AUTO_PICKUP_RESOURCES

RESOURCE_GATHER_DISTANCE

public static int RESOURCE_GATHER_DISTANCE

RESOURCE_GATHER_CAN_FAIL

public static boolean RESOURCE_GATHER_CAN_FAIL

DELETE_CRAFTING_RECIPE_ON_USE

public static boolean DELETE_CRAFTING_RECIPE_ON_USE

RESOURCE_COUNT_IS_LOOT_COUNT

public static boolean RESOURCE_COUNT_IS_LOOT_COUNT

RESOURCE_HARVEST_XP_REWARD

public static int RESOURCE_HARVEST_XP_REWARD

USE_RESOURCE_GROUPS

public static boolean USE_RESOURCE_GROUPS

RESOURCE_GROUP_SIZE

public static int RESOURCE_GROUP_SIZE

SKINNING_SKILL_ID

public static int SKINNING_SKILL_ID

SKINNING_WEAPON_REQ

public static java.lang.String SKINNING_WEAPON_REQ

CAN_HARVEST_WHILE_MOUNTED

public static boolean CAN_HARVEST_WHILE_MOUNTED

CAN_CRAFT_WHILE_MOUNTED

public static boolean CAN_CRAFT_WHILE_MOUNTED

TASK_CRAFTING

public static java.lang.String TASK_CRAFTING

TASK_GATHERING

public static java.lang.String TASK_GATHERING
Constructor Detail

CraftingPlugin

public CraftingPlugin()
Method Detail

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

registerHooks

protected void registerHooks()


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