CMObject, Tickable, CMLibrary, ProtocolLibrary, java.lang.Cloneable, java.lang.Comparable<CMObject>public class CMProtocols extends StdLibrary implements ProtocolLibrary
| Modifier and Type | Class | Description |
|---|---|---|
protected static class |
CMProtocols.MSDPCommand |
|
protected static class |
CMProtocols.MSDPConfigurableVar |
|
protected static class |
CMProtocols.MSDPListable |
|
protected static class |
CMProtocols.MSDPVariable |
ProtocolLibrary.GMCPCommand, ProtocolLibrary.MCPPackageidConverterisDebugging, name, serviceClient, tickStatusSTATUS_AFFECT, STATUS_ALIVE, STATUS_BEHAVIOR, STATUS_CLASS, STATUS_DEAD, STATUS_END, STATUS_FIGHT, STATUS_MISC, STATUS_MISC2, STATUS_MISC3, STATUS_MISC4, STATUS_MISC5, STATUS_MISC6, STATUS_MISC7, STATUS_NOT, STATUS_OTHER, STATUS_RACE, STATUS_REBIRTH, STATUS_SCRIPT, STATUS_START, STATUS_WEATHER, TICKID_AREA, TICKID_BALLISTICK, TICKID_CLAN, TICKID_CLANITEM, TICKID_DEADBODY_DECAY, TICKID_ELECTRONICS, TICKID_EMAIL, TICKID_EVENT, TICKID_EXIT_BEHAVIOR, TICKID_EXIT_REOPEN, TICKID_ITEM_BEHAVIOR, TICKID_ITEM_BOUNCEBACK, TICKID_LIGHT_FLICKERS, TICKID_LIVEAUCTION, TICKID_LONGERMASK, TICKID_MISCELLANEOUS, TICKID_MOB, TICKID_PROPERTY_SPECIAL, TICKID_QUEST, TICKID_READYTOSTOP, TICKID_ROOM_BEHAVIOR, TICKID_ROOM_ITEM_REJUV, TICKID_SHORTERMASK, TICKID_SOLITARYMASK, TICKID_SPECIALCOMBAT, TICKID_SPECIALMANEUVER, TICKID_SPELL_AFFECT, TICKID_SUPPORT, TICKID_TIMEAUCTION, TICKID_TRAP_DESTRUCTION, TICKID_TRAP_RESET| Constructor | Description |
|---|---|
CMProtocols() |
| Modifier and Type | Method | Description |
|---|---|---|
protected byte[] |
buildGmcpResponse(java.lang.String json) |
|
protected java.util.Map<java.lang.String,java.lang.Object> |
buildMsdpMap(char[] data,
int dataSize) |
|
protected boolean |
containsMcpStarTag(java.util.Map<java.lang.String,java.lang.String> keyValuePairs) |
|
protected java.lang.String |
getAbilityGroupName(int code) |
|
java.lang.String |
getDefaultMXPImage(CMObject O) |
MXP Images for each object can go from very specific to
general.
|
java.lang.String |
getHashedMXPImage(java.lang.String key) |
|
java.lang.String |
getHashedMXPImage(java.util.Map<java.lang.String,java.lang.String> H,
java.lang.String key) |
|
protected java.lang.Object |
getMsdpComparable(Session session,
CMProtocols.MSDPVariable var) |
|
protected java.util.Map<java.lang.Integer,java.util.List<Ability>> |
getSkillGroups(MOB mob) |
|
java.lang.String |
ID() |
The CoffeeMud Java Class ID shared by all instances of
this object.
|
byte[] |
invokeRoomChangeGmcp(Session session,
java.util.Map<java.lang.String,java.lang.Long> reporteds,
java.util.Map<java.lang.String,java.lang.Double> supportables) |
GMCP appears to support getting a report from the protocol when entering
a new room.
|
protected java.lang.String |
makeGMCPAttribs(Item I) |
|
boolean |
mcp(Session session,
java.lang.StringBuilder str,
java.lang.String[] mcpKey,
java.util.Map<java.lang.String,float[]> clientSupported,
java.util.Map<java.lang.String,java.lang.String> keyValuePairs) |
Handles an MCP command from the user, modifying the line
of text that contains it.
|
protected static java.lang.String |
MCP_COMMAND_KEY() |
|
protected static java.lang.String |
MCP_DATA_TAG() |
|
protected static java.lang.String |
MCP_KEYSENT_KEY() |
|
protected byte[] |
msdpListToMsdpArray(java.lang.Object[] stuff) |
|
protected java.lang.Object |
msdpStringify(java.lang.Object o) |
|
java.lang.String |
msp(java.lang.String soundName,
int priority) |
Generates an MSP sound tag
|
java.lang.String |
msp(java.lang.String soundName,
int volume,
int priority) |
|
java.lang.String |
mxpImage(Environmental E,
java.lang.String parms) |
Constructs an official MXP image tag for the given object, with
the given parms.
|
java.lang.String |
mxpImage(Environmental E,
java.lang.String parms,
java.lang.String pre,
java.lang.String post) |
Constructs an official MXP image tag for the given object, with
the given parms, and given pre-image and post-image data.
|
java.lang.String[] |
mxpImagePath(java.lang.String fileName) |
Returns the path and filename to an MXP image, given the
image filename, presumably full path.
|
protected boolean |
parseMcpCont(java.lang.String s,
boolean[] exec,
java.util.Map<java.lang.String,java.lang.String> keyValuePairs) |
|
protected boolean |
parseMcpEnd(java.lang.String s,
boolean[] exec,
java.util.Map<java.lang.String,java.lang.String> keyValuePairs) |
|
protected boolean |
parseMcpStart(java.lang.String s,
boolean[] exec,
java.util.Map<java.lang.String,java.lang.String> keyValuePairs) |
|
byte[] |
pingGmcp(Session session,
java.util.Map<java.lang.String,java.lang.Long> reporteds,
java.util.Map<java.lang.String,java.lang.Double> supportables) |
Called every second from each player session to deal with periodic GMCP
reports.
|
byte[] |
pingMsdp(Session session,
java.util.Map<java.lang.Object,java.lang.Object> reportables) |
Called every second from each player session to deal with periodic MSDP
reports.
|
protected byte[] |
possiblePingGmcp(Session session,
java.util.Map<java.lang.String,java.lang.Long> reporteds,
java.util.Map<java.lang.String,java.lang.Double> supportables,
java.lang.String command) |
|
byte[] |
processGmcp(Session session,
java.lang.String data,
java.util.Map<java.lang.String,java.lang.Double> supportables) |
Main entry point to handle GMCP commands from the user
|
protected java.lang.String |
processGmcpStr(Session session,
java.lang.String jsonData,
java.util.Map<java.lang.String,java.lang.Double> supportables) |
|
byte[] |
processMsdp(Session session,
char[] data,
int dataSize,
java.util.Map<java.lang.Object,java.lang.Object> reportables) |
Main entry point to handle MSDP commands from the user
|
protected byte[] |
processMsdpList(Session session,
java.lang.String var,
java.util.Map<java.lang.Object,java.lang.Object> reportables) |
|
protected byte[] |
processMsdpSend(Session session,
java.lang.String var) |
|
protected void |
resetMsdpConfigurable(Session session,
java.lang.String var,
java.util.Map<java.lang.Object,java.lang.Object> reportables) |
activate, getServiceClient, L, propertiesLoaded, shutdowncopyOf, initializeClass, name, newInstanceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitactivate, checkDatabase, compareTo, copyOf, getServiceClient, getTickStatus, initializeClass, L, name, newInstance, propertiesLoaded, setThreadStatus, shutdown, tickpublic java.lang.String ID()
CMObjectID in interface CMObjectID in class StdLibrarypublic java.lang.String msp(java.lang.String soundName,
int volume,
int priority)
protected static java.lang.String MCP_KEYSENT_KEY()
protected static java.lang.String MCP_COMMAND_KEY()
protected static java.lang.String MCP_DATA_TAG()
protected boolean containsMcpStarTag(java.util.Map<java.lang.String,java.lang.String> keyValuePairs)
protected boolean parseMcpStart(java.lang.String s,
boolean[] exec,
java.util.Map<java.lang.String,java.lang.String> keyValuePairs)
protected boolean parseMcpCont(java.lang.String s,
boolean[] exec,
java.util.Map<java.lang.String,java.lang.String> keyValuePairs)
protected boolean parseMcpEnd(java.lang.String s,
boolean[] exec,
java.util.Map<java.lang.String,java.lang.String> keyValuePairs)
public boolean mcp(Session session, java.lang.StringBuilder str, java.lang.String[] mcpKey, java.util.Map<java.lang.String,float[]> clientSupported, java.util.Map<java.lang.String,java.lang.String> keyValuePairs)
ProtocolLibrarymcp in interface ProtocolLibrarysession - the session of the userstr - the string containing the commandmcpKey - the MCP keyclientSupported - map of supported features and their versionskeyValuePairs - protocol-specific key value pairspublic java.lang.String[] mxpImagePath(java.lang.String fileName)
ProtocolLibrarymxpImagePath in interface ProtocolLibraryfileName - the full image pathProtocolLibrary.getDefaultMXPImage(CMObject),
ProtocolLibrary.mxpImage(Environmental, String, String, String),
ProtocolLibrary.mxpImage(Environmental, String),
ProtocolLibrary.mxpImagePath(String)public java.lang.String mxpImage(Environmental E, java.lang.String parms)
ProtocolLibrarymxpImage in interface ProtocolLibraryE - the object to generate an image tag forparms - MXP image parmsProtocolLibrary.getDefaultMXPImage(CMObject),
ProtocolLibrary.mxpImage(Environmental, String, String, String),
ProtocolLibrary.mxpImage(Environmental, String),
ProtocolLibrary.mxpImagePath(String)public java.lang.String mxpImage(Environmental E, java.lang.String parms, java.lang.String pre, java.lang.String post)
ProtocolLibrarymxpImage in interface ProtocolLibraryE - the object to generate an image tag forparms - MXP image parmspre - something to put in front of the IMAGE tag itselfpost - something to put after it, usually a spaceProtocolLibrary.getDefaultMXPImage(CMObject),
ProtocolLibrary.mxpImage(Environmental, String, String, String),
ProtocolLibrary.mxpImage(Environmental, String),
ProtocolLibrary.mxpImagePath(String)public java.lang.String getHashedMXPImage(java.lang.String key)
public java.lang.String msp(java.lang.String soundName,
int priority)
ProtocolLibrarymsp in interface ProtocolLibrarysoundName - the name of the MSP soundpriority - a bias number for the sound prioritypublic java.lang.String getHashedMXPImage(java.util.Map<java.lang.String,java.lang.String> H,
java.lang.String key)
public java.lang.String getDefaultMXPImage(CMObject O)
ProtocolLibrarygetDefaultMXPImage in interface ProtocolLibraryO - the object to get an image forProtocolLibrary.getDefaultMXPImage(CMObject),
ProtocolLibrary.mxpImage(Environmental, String, String, String),
ProtocolLibrary.mxpImage(Environmental, String),
ProtocolLibrary.mxpImagePath(String)protected java.lang.Object msdpStringify(java.lang.Object o)
protected java.util.Map<java.lang.String,java.lang.Object> buildMsdpMap(char[] data,
int dataSize)
protected java.lang.Object getMsdpComparable(Session session, CMProtocols.MSDPVariable var)
protected byte[] processMsdpSend(Session session, java.lang.String var) throws java.io.UnsupportedEncodingException, java.io.IOException
java.io.UnsupportedEncodingExceptionjava.io.IOExceptionprotected byte[] msdpListToMsdpArray(java.lang.Object[] stuff)
throws java.io.UnsupportedEncodingException,
java.io.IOException
java.io.UnsupportedEncodingExceptionjava.io.IOExceptionprotected byte[] processMsdpList(Session session, java.lang.String var, java.util.Map<java.lang.Object,java.lang.Object> reportables) throws java.io.UnsupportedEncodingException, java.io.IOException
java.io.UnsupportedEncodingExceptionjava.io.IOExceptionprotected java.lang.String getAbilityGroupName(int code)
protected void resetMsdpConfigurable(Session session, java.lang.String var, java.util.Map<java.lang.Object,java.lang.Object> reportables)
public byte[] pingMsdp(Session session, java.util.Map<java.lang.Object,java.lang.Object> reportables)
ProtocolLibrarypingMsdp in interface ProtocolLibrarysession - the session of the mob to report toreportables - the 'subscriptions' of the given sessionProtocolLibrary.processMsdp(Session, char[], int, Map)public byte[] processMsdp(Session session, char[] data, int dataSize, java.util.Map<java.lang.Object,java.lang.Object> reportables)
ProtocolLibraryprocessMsdp in interface ProtocolLibrarysession - the session of the mob to report todata - the users MSDP sendingdataSize - the size of the sending?reportables - the 'subscriptions' of the given sessionProtocolLibrary.pingMsdp(Session, Map)protected byte[] buildGmcpResponse(java.lang.String json)
protected java.util.Map<java.lang.Integer,java.util.List<Ability>> getSkillGroups(MOB mob)
protected java.lang.String makeGMCPAttribs(Item I)
protected java.lang.String processGmcpStr(Session session, java.lang.String jsonData, java.util.Map<java.lang.String,java.lang.Double> supportables)
public byte[] processGmcp(Session session, java.lang.String data, java.util.Map<java.lang.String,java.lang.Double> supportables)
ProtocolLibraryprocessGmcp in interface ProtocolLibrarysession - the session of the mob to report todata - the command sent by the usersupportables - map of supported GMCP featuresProtocolLibrary.pingGmcp(Session, Map, Map),
ProtocolLibrary.invokeRoomChangeGmcp(Session, Map, Map),
ProtocolLibrary.GMCPCommandprotected byte[] possiblePingGmcp(Session session, java.util.Map<java.lang.String,java.lang.Long> reporteds, java.util.Map<java.lang.String,java.lang.Double> supportables, java.lang.String command)
public byte[] invokeRoomChangeGmcp(Session session, java.util.Map<java.lang.String,java.lang.Long> reporteds, java.util.Map<java.lang.String,java.lang.Double> supportables)
ProtocolLibraryinvokeRoomChangeGmcp in interface ProtocolLibrarysession - the session of the mob to report toreporteds - the 'subscriptions' of the given sessionsupportables - map of supported GMCP featuresProtocolLibrary.processGmcp(Session, String, Map),
ProtocolLibrary.pingGmcp(Session, Map, Map),
ProtocolLibrary.GMCPCommandpublic byte[] pingGmcp(Session session, java.util.Map<java.lang.String,java.lang.Long> reporteds, java.util.Map<java.lang.String,java.lang.Double> supportables)
ProtocolLibrarypingGmcp in interface ProtocolLibrarysession - the session of the mob to report toreporteds - the 'subscriptions' of the given sessionsupportables - map of supported GMCP featuresProtocolLibrary.processGmcp(Session, String, Map),
ProtocolLibrary.invokeRoomChangeGmcp(Session, Map, Map),
ProtocolLibrary.GMCPCommand