CMProtocolspublic interface ProtocolLibrary extends CMLibrary
| Modifier and Type | Interface | Description | 
|---|---|---|
| static class  | ProtocolLibrary.GMCPCommand | Enumeration of all support GMCP commands | 
| static interface  | ProtocolLibrary.MCPPackage | Interface allowing java or javascript plugins to the MCP protocol | 
idConverter| Modifier and Type | Method | Description | 
|---|---|---|
| java.lang.String | getDefaultMXPImage(CMObject O) | MXP Images for each object can go from very specific to
 general. | 
| 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. | 
| 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. | 
| java.lang.String | msp(java.lang.String soundName,
   int priority) | Generates an MSP sound tag | 
| 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. | 
| 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. | 
| 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 | 
| 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 | 
activate, getServiceClient, L, propertiesLoaded, shutdowncopyOf, ID, initializeClass, name, newInstancejava.lang.String msp(java.lang.String soundName,
                     int priority)
soundName - the name of the MSP soundpriority - a bias number for the sound priorityboolean 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)
session - the session of the userstr - the string containing the commandmcpKey - the MCP keyclientSupported - map of supported features and their versionskeyValuePairs - protocol-specific key value pairsjava.lang.String[] mxpImagePath(java.lang.String fileName)
fileName - the full image pathgetDefaultMXPImage(CMObject), 
mxpImage(Environmental, String, String, String), 
mxpImage(Environmental, String), 
mxpImagePath(String)java.lang.String mxpImage(Environmental E, java.lang.String parms)
E - the object to generate an image tag forparms - MXP image parmsgetDefaultMXPImage(CMObject), 
mxpImage(Environmental, String, String, String), 
mxpImage(Environmental, String), 
mxpImagePath(String)java.lang.String mxpImage(Environmental E, java.lang.String parms, java.lang.String pre, java.lang.String post)
E - 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 spacegetDefaultMXPImage(CMObject), 
mxpImage(Environmental, String, String, String), 
mxpImage(Environmental, String), 
mxpImagePath(String)java.lang.String getDefaultMXPImage(CMObject O)
O - the object to get an image forgetDefaultMXPImage(CMObject), 
mxpImage(Environmental, String, String, String), 
mxpImage(Environmental, String), 
mxpImagePath(String)byte[] processMsdp(Session session, char[] data, int dataSize, java.util.Map<java.lang.Object,java.lang.Object> reportables)
session - the session of the mob to report todata - the users MSDP sendingdataSize - the size of the sending?reportables - the 'subscriptions' of the given sessionpingMsdp(Session, Map)byte[] pingMsdp(Session session, java.util.Map<java.lang.Object,java.lang.Object> reportables)
session - the session of the mob to report toreportables - the 'subscriptions' of the given sessionprocessMsdp(Session, char[], int, Map)byte[] processGmcp(Session session, java.lang.String data, java.util.Map<java.lang.String,java.lang.Double> supportables)
session - the session of the mob to report todata - the command sent by the usersupportables - map of supported GMCP featurespingGmcp(Session, Map, Map), 
invokeRoomChangeGmcp(Session, Map, Map), 
ProtocolLibrary.GMCPCommandbyte[] pingGmcp(Session session, java.util.Map<java.lang.String,java.lang.Long> reporteds, java.util.Map<java.lang.String,java.lang.Double> supportables)
session - the session of the mob to report toreporteds - the 'subscriptions' of the given sessionsupportables - map of supported GMCP featuresprocessGmcp(Session, String, Map), 
invokeRoomChangeGmcp(Session, Map, Map), 
ProtocolLibrary.GMCPCommandbyte[] invokeRoomChangeGmcp(Session session, java.util.Map<java.lang.String,java.lang.Long> reporteds, java.util.Map<java.lang.String,java.lang.Double> supportables)
session - the session of the mob to report toreporteds - the 'subscriptions' of the given sessionsupportables - map of supported GMCP featuresprocessGmcp(Session, String, Map), 
pingGmcp(Session, Map, Map), 
ProtocolLibrary.GMCPCommand