|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectanecho.JamochaMUD.plugins.MusicBox
public class MusicBox
| Constructor Summary | |
|---|---|
MusicBox()
|
|
| 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()
Returns to JamochaMUD whether our plug-in is currently active or not. |
void |
keyPressed(java.awt.event.KeyEvent key)
|
void |
keyReleased(java.awt.event.KeyEvent key)
|
void |
keyTyped(java.awt.event.KeyEvent evtKey)
|
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 |
protected void |
readSettings()
This method reads the MusicBox settings from a file. |
protected void |
saveSettings()
This method saves the current MusicBox settings to 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 settings)
Collect the settings file information that we might need. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MusicBox()
| Method Detail |
|---|
public void setSettings(JMConfig settings)
settings - Our JamochaMUD settings filepublic 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 - Original string supplied to our plug-in by JamochaMUD. Not used in this
instance.mSock - The mSock* socket that our input would come from. Not used in this plug-in.
public void plugInProperties()
plugInProperties in interface PlugInterfacepublic boolean hasProperties()
hasProperties in interface PlugInterfacepublic void initialiseAtLoad()
initialiseAtLoad in interface PlugInterfacepublic void activate()
activate in interface PlugInterfacepublic void deactivate()
deactivate in interface PlugInterfacepublic boolean isActive()
isActive in interface PlugInterfacetrueif the plug-in is currently active and
falseif inactive.
public void setAtHalt()
setAtHalt in interface PlugInterfacepublic boolean haveConfig()
haveConfig in interface PlugInterfacetrue- create a settings directory
false- no directory required
public void keyTyped(java.awt.event.KeyEvent evtKey)
keyTyped in interface java.awt.event.KeyListenerevtKey - public void keyPressed(java.awt.event.KeyEvent key)
keyPressed in interface java.awt.event.KeyListenerkey - public void keyReleased(java.awt.event.KeyEvent key)
keyReleased in interface java.awt.event.KeyListenerkey - protected void saveSettings()
protected void readSettings()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||