com.planet_ink.coffee_mud.WebMacros
Class RoomData

java.lang.Object
  extended by com.planet_ink.coffee_mud.WebMacros.StdWebMacro
      extended by com.planet_ink.coffee_mud.WebMacros.RoomData
All Implemented Interfaces:
CMObject, WebMacro, java.lang.Cloneable, java.lang.Comparable<CMObject>

public class RoomData
extends StdWebMacro


Field Summary
static java.util.List<Item> items
           
static java.util.List<MOB> mobs
           
 
Constructor Summary
RoomData()
           
 
Method Summary
static java.util.List<Item> contributeItems(java.util.List<Item> inhabs)
           
static java.util.List<MOB> contributeMOBs(java.util.List<MOB> inhabs)
           
static java.lang.String getAppropriateCode(Environmental E, Environmental RorM, java.util.List classes, java.util.List list)
           
static java.lang.String getItemCode(java.util.List<Item> allitems, Item I)
           
static java.lang.String getItemCode(MOB M, Item I)
           
static java.lang.String getItemCode(Room R, Item I)
           
static Item getItemFromAnywhere(java.lang.Object allitems, java.lang.String MATCHING)
           
static Item getItemFromCatalog(java.lang.String MATCHING)
           
static Item getItemFromCode(java.util.List<Item> allitems, java.lang.String code)
           
static Item getItemFromCode(MOB M, java.lang.String code)
           
static Item getItemFromCode(Room R, java.lang.String code)
           
static java.lang.String getMOBCode(java.util.List<MOB> mobs, MOB M)
           
static java.lang.String getMOBCode(Room R, MOB M)
           
static MOB getMOBFromCatalog(java.lang.String MATCHING)
           
static MOB getMOBFromCode(java.util.List<MOB> allmobs, java.lang.String code)
           
static MOB getMOBFromCode(Room R, java.lang.String code)
           
static java.lang.String getObjIDSuffix(Environmental E)
           
static Item getReferenceItem(Item I)
           
static MOB getReferenceMOB(MOB M)
           
static boolean isAllNum(java.lang.String str)
           
 java.lang.String name()
          The public name of this macro
 java.lang.String runMacro(ExternalHTTPRequests httpReq, java.lang.String parm)
          This method is executed only if this macro returns false for preferBinary().
 
Methods inherited from class com.planet_ink.coffee_mud.WebMacros.StdWebMacro
clearWebMacros, clearWebMacros, colorwebifyOnly, compareTo, copyOf, getFilename, getSpecialContentHeader, helpHelp, helpHelp, htmlIncomingFilter, htmlIncomingFilter, htmlOutgoingFilter, htmlOutgoingFilter, ID, initializeClass, isAdminMacro, isAWebPath, newInstance, parseOrderedParms, parseParms, preferBinary, runBinaryMacro, webify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mobs

public static java.util.List<MOB> mobs

items

public static java.util.List<Item> items
Constructor Detail

RoomData

public RoomData()
Method Detail

name

public java.lang.String name()
Description copied from interface: WebMacro
The public name of this macro

Specified by:
name in interface WebMacro
Overrides:
name in class StdWebMacro
Returns:
The public name of this macro

getItemCode

public static java.lang.String getItemCode(Room R,
                                           Item I)

getItemCode

public static java.lang.String getItemCode(java.util.List<Item> allitems,
                                           Item I)

getItemCode

public static java.lang.String getItemCode(MOB M,
                                           Item I)

getMOBCode

public static java.lang.String getMOBCode(Room R,
                                          MOB M)

getMOBCode

public static java.lang.String getMOBCode(java.util.List<MOB> mobs,
                                          MOB M)

getItemFromCode

public static Item getItemFromCode(MOB M,
                                   java.lang.String code)

getItemFromCode

public static Item getItemFromCode(Room R,
                                   java.lang.String code)

getItemFromCode

public static Item getItemFromCode(java.util.List<Item> allitems,
                                   java.lang.String code)

getMOBFromCode

public static MOB getMOBFromCode(Room R,
                                 java.lang.String code)

getMOBFromCode

public static MOB getMOBFromCode(java.util.List<MOB> allmobs,
                                 java.lang.String code)

getMOBFromCatalog

public static MOB getMOBFromCatalog(java.lang.String MATCHING)

getItemFromCatalog

public static Item getItemFromCatalog(java.lang.String MATCHING)

getAppropriateCode

public static java.lang.String getAppropriateCode(Environmental E,
                                                  Environmental RorM,
                                                  java.util.List classes,
                                                  java.util.List list)

getItemFromAnywhere

public static Item getItemFromAnywhere(java.lang.Object allitems,
                                       java.lang.String MATCHING)

getReferenceMOB

public static MOB getReferenceMOB(MOB M)

getReferenceItem

public static Item getReferenceItem(Item I)

contributeMOBs

public static java.util.List<MOB> contributeMOBs(java.util.List<MOB> inhabs)

isAllNum

public static boolean isAllNum(java.lang.String str)

contributeItems

public static java.util.List<Item> contributeItems(java.util.List<Item> inhabs)

getObjIDSuffix

public static final java.lang.String getObjIDSuffix(Environmental E)

runMacro

public java.lang.String runMacro(ExternalHTTPRequests httpReq,
                                 java.lang.String parm)
Description copied from interface: WebMacro
This method is executed only if this macro returns false for preferBinary(). It will execute the macro and return its results as a string, which is then substituted for the macro reference in the web page where the macro was found.

Specified by:
runMacro in interface WebMacro
Overrides:
runMacro in class StdWebMacro
Parameters:
httpReq - the external requests object
parm - any parameter strigs given to the macro
Returns:
the string result of running this macro
See Also:
WebMacro.preferBinary(), ExternalHTTPRequests