|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PlugInterface
This is the standard interface that must be used by all JamochaMUD plug-ins. It outlines the standard commands required by JamochaMUD to qualify as a plug-in, such as starting and stopping the plug-in, as well as registering the plug-in with the main program.
| Method Summary | |
|---|---|
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. |
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()
Returns the plugin's proper name |
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 |
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. |
| Method Detail |
|---|
java.lang.String plugInName()
java.lang.String plugInDescription()
java.lang.String plugInType()
java.lang.String plugMain(java.lang.String jamochaString,
MuSocket mSock)
jamochaString - mSock -
void plugInProperties()
boolean hasProperties()
true- plug-in can be configured
false- plug-in cannot be configured
void initialiseAtLoad()
void activate()
void deactivate()
boolean isActive()
true - this plug-in is active
false - this plug-in is not activevoid setAtHalt()
boolean haveConfig()
true- create a settings directory
false- no directory required
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||