PlugInterfacepublic class Ticker extends java.lang.Object implements PlugInterface
| Constructor | Description |
|---|---|
Ticker() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
activate() |
This function is automatically called by JamochaMUD when the
plug-in is first activated (at each JamochaMUD start-up).
|
void |
deactivate() |
This function is automatically called by JamochaMUD when the
plug-in is set inactive from the JamochaMUD "Manage Plug-Ins"
dialogue.
|
int |
getTickSize() |
This method returns the tick size
|
boolean |
hasProperties() |
If a plug-in has properties that can be configured via a GUI,
this method should return true, otherwise it should
return false.
|
boolean |
haveConfig() |
This method tells JamochaMUD whether this plugin should have
its own person configuration directory where it can keep its
settings.
|
void |
initialiseAtLoad() |
This method is called as soon as the plugin is first loaded.
|
boolean |
isActive() |
Allows JamochaMUD to check whether this plug-in is active
and should be used.
|
java.lang.String |
plugInDescription() |
A basic description of the plug-in that is shown in
the JamochaMUD "Manage Plugins" dialogue box
|
java.lang.String |
plugInName() |
This method returns the name of the plug-in
|
void |
plugInProperties() |
This method is called by the "Properties" option in
the JamochaMUD "Manage plugins" dialogue box.
|
java.lang.String |
plugInType() |
This indicates what type of plugin this is, ie: input or output.
|
java.lang.String |
plugMain(java.lang.String jamochaString,
MuSocket mSock) |
This is the main method of the plug-in.
|
void |
setAtHalt() |
The method is automatically called when JamochaMUD is quit
by using the File -> Exit menu or the close window icon.
|
void |
setTickSize(int size) |
This method is used for setting to tick size (in seconds)
|
void |
showTimeRemaining() |
Report the time remaining until the next tick to the user
|
public void setTickSize(int size)
size - - The length of the tick in secondspublic int getTickSize()
public java.lang.String plugInName()
plugInName in interface PlugInterfacepublic java.lang.String plugInDescription()
plugInDescription in interface PlugInterfacepublic java.lang.String plugInType()
plugInType in interface PlugInterfacepublic java.lang.String plugMain(java.lang.String jamochaString,
MuSocket mSock)
plugMain in interface PlugInterfacejamochaString - mSock - public void showTimeRemaining()
public void plugInProperties()
plugInProperties in interface PlugInterfacepublic void initialiseAtLoad()
initialiseAtLoad in interface PlugInterfacepublic void setAtHalt()
setAtHalt in interface PlugInterfacepublic boolean haveConfig()
haveConfig in interface PlugInterfacepublic boolean hasProperties()
hasProperties in interface PlugInterfacepublic void activate()
activate in interface PlugInterfacepublic void deactivate()
deactivate in interface PlugInterfacepublic boolean isActive()
PlugInterfaceisActive in interface PlugInterface