|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectanecho.JamochaMUD.plugins.Ticker
public class Ticker
This plug-in recreates the ticker function of TinyFugue. This plug-in will implement the commands: /tick - This command displays the number of seconds before the next tick. /tickoff - Turns off the timer /tickon - Turn on the timer and resets the tickcount. /tickset - Resets the tickcounter. /ticksize n - Sets a new tick size of "n" seconds. Each of these settings will be specific to the connected MU*
| Constructor Summary | |
|---|---|
Ticker()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Ticker()
| Method Detail |
|---|
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 PlugInterface
public 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()
PlugInterface
isActive in interface PlugInterface
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||