public class AuctionPlugin extends EnginePlugin
Modifier and Type | Class and Description |
---|---|
class |
AuctionPlugin.AuctionChecker |
class |
AuctionPlugin.AuctionDelayStart |
class |
AuctionPlugin.AuctionOldChecker |
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 static AccountDatabase |
aDB |
protected static int |
AUCTION_COST_PRICE_VALUE |
protected static int |
AUCTION_COST_PRICE_VALUE_PERCENTAGE |
protected static int |
AUCTION_CURRENCY |
protected static int |
AUCTION_DURATION |
protected static int |
AUCTION_LIMIT |
protected static int |
AUCTION_LOAD_DELAY |
protected static int |
AUCTION_OWN_LIMIT |
static java.lang.String |
AUCTION_PLUGIN_NAME |
protected static int |
AUCTION_START_PRICE_VALUE |
protected static int |
AUCTION_START_PRICE_VALUE_PERCENTAGE |
java.util.ArrayList<Auction> |
auctions |
protected static int |
hour |
protected static Logger |
log |
protected static int |
minute |
protected static java.lang.String |
WORLD_TIME_ZONE |
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
NO_FLAGS, RESPONSE_EXPECTED
Constructor and Description |
---|
AuctionPlugin() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the name of the plugin.
|
void |
loadAuctionsFromDatabase() |
void |
loadItemsFromDatabase()
Loads in item templates from the database and registers them.
|
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() |
void |
serverTimeUpdate(int wHour,
int wMinute) |
static java.util.ArrayList<java.lang.String> |
SortAuctionsCount(java.util.HashMap<java.lang.String,java.util.ArrayList<Auction>> auctionCountryMap) |
static java.util.ArrayList<java.lang.String> |
SortAuctionsName(java.util.HashMap<java.lang.String,java.util.ArrayList<Auction>> auctionCountryMap) |
static java.util.ArrayList<java.lang.String> |
SortAuctionsPrice(java.util.HashMap<java.lang.String,java.util.ArrayList<Auction>> auctionCountryMap) |
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
public static java.lang.String AUCTION_PLUGIN_NAME
protected static final Logger log
protected static AccountDatabase aDB
protected static int hour
protected static int minute
protected static java.lang.String WORLD_TIME_ZONE
public java.util.ArrayList<Auction> auctions
protected static int AUCTION_START_PRICE_VALUE
protected static int AUCTION_START_PRICE_VALUE_PERCENTAGE
protected static int AUCTION_COST_PRICE_VALUE
protected static int AUCTION_COST_PRICE_VALUE_PERCENTAGE
protected static int AUCTION_DURATION
protected static int AUCTION_CURRENCY
protected static int AUCTION_LIMIT
protected static int AUCTION_OWN_LIMIT
protected static int AUCTION_LOAD_DELAY
public java.lang.String getName()
EnginePlugin
getName
in class EnginePlugin
EnginePlugin.setName(String)
public void onActivate()
EnginePlugin
onActivate
in class EnginePlugin
protected void registerHooks()
public void loadItemsFromDatabase()
iDB
- public void loadAuctionsFromDatabase()
public static java.util.ArrayList<java.lang.String> SortAuctionsCount(java.util.HashMap<java.lang.String,java.util.ArrayList<Auction>> auctionCountryMap)
public static java.util.ArrayList<java.lang.String> SortAuctionsPrice(java.util.HashMap<java.lang.String,java.util.ArrayList<Auction>> auctionCountryMap)
public static java.util.ArrayList<java.lang.String> SortAuctionsName(java.util.HashMap<java.lang.String,java.util.ArrayList<Auction>> auctionCountryMap)
public void serverTimeUpdate(int wHour, int wMinute)