PlugInterfacepublic class DictPlugin extends java.lang.Object implements PlugInterface
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
COMMANDS_FILE |
| Constructor | Description |
|---|---|
DictPlugin() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
activate() |
This function tells the plug-in that it should be functioning.
|
void |
deactivate() |
This function tells the plug-in that it should not be active.
|
protected java.lang.String |
DefaultDict() |
|
protected java.lang.String |
DefaultQuery() |
|
boolean |
hasProperties() |
Check to see if the plug-in has configurable properties
|
boolean |
haveConfig() |
This function indicates whether a directory
is required to hold settings for our plug-in.
|
void |
initialiseAtLoad() |
This function is called at load-up, in case
properties are needed...
|
boolean |
isActive() |
Allows JamochaMUD to check whether this plug-in is active
and should be used.
|
java.lang.String |
plugInDescription() |
Returns a description, eg.
|
java.lang.String |
plugInName() |
This method returns the name of the plug-in
|
void |
plugInProperties() |
Any user configurable options for the plugin
|
java.lang.String |
plugInType() |
Returns a type of either input, output, or other
|
java.lang.String |
plugMain(java.lang.String jamochaString,
MuSocket mSock) |
the core of the plugin
|
protected void |
readSettings() |
This method reads the MusicBox settings from a file.
|
void |
setAtHalt() |
Previously this function did most of the functions of deactivate()
but now this is reserved solely for shutting down the plug-in
and doing any necessary clean-up.
|
void |
setSettings(JMConfig mainSettings) |
public static final java.lang.String COMMANDS_FILE
public void setSettings(JMConfig mainSettings)
public java.lang.String plugInName()
plugInName in interface PlugInterfacepublic java.lang.String plugInDescription()
PlugInterfaceplugInDescription in interface PlugInterfacepublic java.lang.String plugInType()
PlugInterfaceplugInType in interface PlugInterfacepublic java.lang.String plugMain(java.lang.String jamochaString,
MuSocket mSock)
PlugInterfaceplugMain in interface PlugInterfacepublic void plugInProperties()
PlugInterfaceplugInProperties in interface PlugInterfacepublic void initialiseAtLoad()
PlugInterfaceinitialiseAtLoad in interface PlugInterfacepublic void setAtHalt()
PlugInterfacesetAtHalt in interface PlugInterfacepublic boolean haveConfig()
PlugInterfacehaveConfig in interface PlugInterfacetrue- create a settings directory
false- no directory required
public boolean hasProperties()
PlugInterfacehasProperties in interface PlugInterfacetrue- plug-in can be configured
false- plug-in cannot be configured
public void activate()
PlugInterfaceactivate in interface PlugInterfacepublic void deactivate()
PlugInterfacedeactivate in interface PlugInterfacepublic boolean isActive()
PlugInterfaceisActive in interface PlugInterfacetrue - this plug-in is active
false - this plug-in is not activeprotected void readSettings()
protected java.lang.String DefaultDict()
protected java.lang.String DefaultQuery()