CMObject, CMLibrary, I3Interface, java.lang.Cloneable, java.lang.Comparable<CMObject>public class IMudClient extends java.lang.Object implements I3Interface
| Modifier and Type | Field | Description |
|---|---|---|
IMC2Driver |
imc2 |
idConverter| Constructor | Description |
|---|---|
IMudClient() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
activate() |
Activates the library.
|
int |
compareTo(CMObject o) |
|
CMObject |
copyOf() |
Similar to Cloneable.clone(), but does its best to make sure that
any internal objects to this class are also copyOfed.
|
void |
destroymob(MOB mob) |
|
java.util.List<java.lang.String> |
getI3MudList(boolean coffeemudOnly) |
Returns the simple mud name list of all active I3
muds.
|
java.lang.String |
getMudInfo(I3Mud mudToShow) |
|
TickClient |
getServiceClient() |
If this library has a service thread, this method returns the TickClient
object associated with that service.
|
protected java.util.List<I3Mud> |
getSortedI3Muds() |
|
void |
giveI3ChannelsList(MOB mob) |
Show the list of available I3 channels to
the given player.
|
void |
giveI3MudList(MOB mob) |
Shows the list of active I3 muds to the
given mobs.
|
void |
giveIMC2ChannelsList(MOB mob) |
Show the list of available IMC2 channels to
the given player.
|
void |
giveIMC2MudList(MOB mob) |
Shows the list of active IMC2 muds to the
given mobs.
|
void |
i3channel(MOB mob,
java.lang.String channelName,
java.lang.String message) |
Sends an I3 channel message
|
void |
i3channelAdd(MOB mob,
java.lang.String channel) |
An administrative command to register a particular
channel on the I3 network.
|
void |
i3channelListen(MOB mob,
java.lang.String channel) |
An administrative command to subscribe to a particular
channel on the I3 network.
|
void |
i3channelRemove(MOB mob,
java.lang.String channel) |
An administrative command to de-register a particular
channel on the I3 network.
|
void |
i3channelSilence(MOB mob,
java.lang.String channel) |
An administrative command to un-subscribe a particular
channel on the I3 network.
|
void |
i3chanwho(MOB mob,
java.lang.String channel,
java.lang.String mudName) |
Queries another mud on the I3 network for a list of which
players on that mud are listening on a particular channel.
|
void |
i3finger(MOB mob,
java.lang.String mobName,
java.lang.String mudName) |
Sends a finger packet to the target mud requesting
info about the given user on that i3 mud.
|
void |
i3locate(MOB mob,
java.lang.String mobName) |
Sends a locate packet to the i3 router requesting which mud
a character with the given name exists on, and also returning
this fact and the char status to the given player
|
void |
i3mudInfo(MOB mob,
java.lang.String parms) |
Send a request for information about a mud
on the I3 network on behalf of the given
player.
|
boolean |
i3online() |
Returns whether the mud is presently
connected to the I3 server.
|
void |
i3pingRouter(MOB mob) |
Sends a ping packet to the i3 router, which is only
partially supported.
|
void |
i3tell(MOB mob,
java.lang.String tellName,
java.lang.String mudName,
java.lang.String message) |
Sends a tell private message from the given player to a character
on an I3 mud.
|
void |
i3who(MOB mob,
java.lang.String mudName) |
Requests a list of characters online on the given i3 mud.
|
java.lang.String |
ID() |
The CoffeeMud Java Class ID shared by all instances of
this object.
|
void |
imc2mudInfo(MOB mob,
java.lang.String parms) |
Send a request for information about a mud
on the IMC2 network on behalf of the given
player.
|
boolean |
imc2online() |
Returns whether the mud is presently
connected to the IMC2 server.
|
void |
initializeClass() |
Called ONCE after all objects are loaded, but before the map is read in
during initialization.
|
boolean |
isI3channel(java.lang.String channelName) |
Returns whether the given string represents
a real mud-mapped im3 channel name
|
boolean |
isIMC2channel(java.lang.String channelName) |
Returns whether the given string represents
a real mud-mapped imc2 channel name
|
java.lang.String |
L(java.lang.String str,
java.lang.String... xs) |
Localize an internal string -- shortcut.
|
java.util.List<I3Mud> |
mudFinder(java.lang.String parms) |
|
java.lang.String |
name() |
The displayable name of this object.
|
CMObject |
newInstance() |
Returns a new instance of this class.
|
void |
propertiesLoaded() |
This method is called whenever system properties are altered by the user.
|
void |
registerIMC2(java.lang.Object O) |
Registers the given driver server as the active
imc2 server for the entire mud.
|
boolean |
shutdown() |
Shuts down the library.
|
java.lang.String |
socialFixOut(java.lang.String str) |
public IMC2Driver imc2
public java.lang.String ID()
CMObjectpublic java.lang.String name()
CMObjectname in interface CMObjectEnvironmental.Name()public CMObject newInstance()
CMObjectnewInstance in interface CMObjectpublic void initializeClass()
CMObjectinitializeClass in interface CMObjectpublic CMObject copyOf()
CMObjectpublic java.lang.String L(java.lang.String str,
java.lang.String... xs)
CMLibraryL in interface CMLibrarystr - the string to translatexs - the array of variables to replaceCall with the string to translate, which may contain variables of the form @x1, @x2, etc. The array in xs
is then used to replace the variables AFTER the string is translated.public int compareTo(CMObject o)
compareTo in interface java.lang.Comparable<CMObject>public boolean activate()
CMLibraryactivate in interface CMLibraryCMLibrary.shutdown()public boolean shutdown()
CMLibraryshutdown in interface CMLibraryCMLibrary.activate()public void propertiesLoaded()
CMLibrarypropertiesLoaded in interface CMLibrarypublic TickClient getServiceClient()
CMLibrarygetServiceClient in interface CMLibraryTickClientpublic void registerIMC2(java.lang.Object O)
I3InterfaceregisterIMC2 in interface I3InterfaceO - the IMC2Driver serverpublic void i3who(MOB mob, java.lang.String mudName)
I3Interfacei3who in interface I3Interfacemob - the player requesting infomudName - the mud info is requested aboutpublic boolean i3online()
I3Interfacei3online in interface I3Interfacepublic boolean imc2online()
I3Interfaceimc2online in interface I3Interfacepublic void imc2mudInfo(MOB mob, java.lang.String parms)
I3Interfaceimc2mudInfo in interface I3Interfacemob - the player who wants the infoparms - the possible mud name to get info onpublic void i3chanwho(MOB mob, java.lang.String channel, java.lang.String mudName)
I3Interfacei3chanwho in interface I3Interfacemob - the player who is curiouschannel - the channel in questionmudName - the mud to querypublic void i3channelAdd(MOB mob, java.lang.String channel)
I3Interfacei3channelAdd in interface I3Interfacemob - the player doing the registeringchannel - the possible channel name to registerpublic void i3channelListen(MOB mob, java.lang.String channel)
I3Interfacei3channelListen in interface I3Interfacemob - the player doing the subscribeingchannel - the possible channel name to subscribepublic void i3channelSilence(MOB mob, java.lang.String channel)
I3Interfacei3channelSilence in interface I3Interfacemob - the player doing the un-subscribeingchannel - the possible channel name to un-subscribepublic void i3channelRemove(MOB mob, java.lang.String channel)
I3Interfacei3channelRemove in interface I3Interfacemob - the player doing the de-registeringchannel - the possible channel name to de-registerpublic void i3tell(MOB mob, java.lang.String tellName, java.lang.String mudName, java.lang.String message)
I3Interfacei3tell in interface I3Interfacemob - the player sending the messagetellName - the char to send the message tomudName - the mud the char is onmessage - the message being sent to the charpublic void destroymob(MOB mob)
public void i3channel(MOB mob, java.lang.String channelName, java.lang.String message)
I3Interfacei3channel in interface I3Interfacemob - the player sending the messagechannelName - the channel to send the message onmessage - the message to sendpublic void i3locate(MOB mob, java.lang.String mobName)
I3Interfacei3locate in interface I3Interfacemob - the player requesting infomobName - the char info is requested aboutpublic void i3pingRouter(MOB mob)
I3Interfacei3pingRouter in interface I3Interfacemob - the player who did itpublic void i3finger(MOB mob, java.lang.String mobName, java.lang.String mudName)
I3Interfacei3finger in interface I3Interfacemob - the player who did itmobName - the char to request info aboutmudName - the mud that the char is atpublic java.lang.String getMudInfo(I3Mud mudToShow)
public java.util.List<I3Mud> mudFinder(java.lang.String parms)
public void i3mudInfo(MOB mob, java.lang.String parms)
I3Interfacei3mudInfo in interface I3Interfacemob - the player who wants the infoparms - the possible mud name to get info onpublic void giveIMC2MudList(MOB mob)
I3InterfacegiveIMC2MudList in interface I3Interfacemob - the player to show the list toprotected java.util.List<I3Mud> getSortedI3Muds()
public java.util.List<java.lang.String> getI3MudList(boolean coffeemudOnly)
I3InterfacegetI3MudList in interface I3InterfacecoffeemudOnly - true to only send back coffeemuds, false for allpublic void giveI3MudList(MOB mob)
I3InterfacegiveI3MudList in interface I3Interfacemob - the player to show the list topublic void giveI3ChannelsList(MOB mob)
I3InterfacegiveI3ChannelsList in interface I3Interfacemob - the player who wants infopublic void giveIMC2ChannelsList(MOB mob)
I3InterfacegiveIMC2ChannelsList in interface I3Interfacemob - the player who wants infopublic boolean isIMC2channel(java.lang.String channelName)
I3InterfaceisIMC2channel in interface I3InterfacechannelName - the channel name to checkpublic boolean isI3channel(java.lang.String channelName)
I3InterfaceisI3channel in interface I3InterfacechannelName - the channel name to checkpublic java.lang.String socialFixOut(java.lang.String str)