public class EnumPlugIns
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
INPUT |
Output type of plug-in, used for identifying type of commands this
plug-in watches
|
static java.lang.String |
OUTPUT |
Output type of plug-in, used for identifying type of commands this
plug-in watches
|
static java.util.Vector |
plugInClass |
A vector containing all the plug-in classes
|
static java.util.Vector |
plugInName |
A vector containing all the names of the plug-ins.
|
static java.util.Vector |
plugInStatus |
A vector containing the status of all the plug-ins.
|
static java.util.Vector |
plugInType |
A Vector containing the type of all the plug-ins.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
activate(int plugNum) |
Update out internal list and activate the plug-in
|
void |
addNewPlugIn() |
Update out internal list and deactivate the plug-in
|
static java.lang.String |
callPlugin(java.lang.String target,
java.lang.String plugType,
MuSocket mSock) |
Analyse the input/output and cycle through the list of plugins, applying
any where the input/output meets the right criteria
|
static java.lang.Object |
classByName(java.lang.String targetName) |
Return the plugin object for the name given
|
void |
deactivate(int plugNum) |
Update out internal list and deactivate the plug-in
|
static java.lang.String |
description(java.lang.String targetName) |
This method returns the user-readable description of the given plug-ins
function.
|
static EnumPlugIns |
getInstance() |
Get the instance of our singleton.
|
void |
haltPlugIns() |
Loop through the plugins and tell them all to "halt"
|
void |
loadPlugIns(java.lang.Object splash) |
Load the JamochaMUD plug-ins.
|
void |
removePlugIn() |
Remove (erase) a plug-in that is currently installed with JamochaMUD.
|
void |
resetPlugInStatus() |
Set the status of the plugins, whether they are active or inactive
|
static void |
write(java.lang.String text) |
A static method to allow a plug-in to write output to the screen.
|
public static java.util.Vector plugInClass
public static java.util.Vector plugInName
public static java.util.Vector plugInType
public static java.util.Vector plugInStatus
public static final java.lang.String INPUT
public static final java.lang.String OUTPUT
public static EnumPlugIns getInstance()
public void loadPlugIns(java.lang.Object splash)
splash - The anecho.gui.SplashScreen object (if used).public static java.lang.String callPlugin(java.lang.String target,
java.lang.String plugType,
MuSocket mSock)
target - The initial string that the plug-in will operate on.plugType - A string representing the type of plug-in currently being
processedmSock - The MuSock that this plug-in is being called by.This ensures
that the input/output is being processed for the proper MU.public void resetPlugInStatus()
public static java.lang.String description(java.lang.String targetName)
targetName - Name of the plug-in to examine.public static java.lang.Object classByName(java.lang.String targetName)
targetName - public static void write(java.lang.String text)
text - The text to be written out to the user's display.public void activate(int plugNum)
plugNum - The index number of the plug-in we wish to activatepublic void deactivate(int plugNum)
plugNum - The index number of the plug-in we wish to deactivatepublic void haltPlugIns()
public void addNewPlugIn()
public void removePlugIn()