com.planet_ink.coffee_mud.WebMacros
Class MobData

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

public class MobData
extends StdWebMacro


Constructor Summary
MobData()
           
 
Method Summary
static java.lang.StringBuffer abilities(MOB E, com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq, java.util.Map<java.lang.String,java.lang.String> parms, int borderSize)
           
static java.lang.StringBuffer blessings(Deity E, com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq, java.util.Map<java.lang.String,java.lang.String> parms, int borderSize)
           
static java.lang.StringBuffer clans(MOB E, com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq, java.util.Map<java.lang.String,java.lang.String> parms, int borderSize)
           
static java.lang.StringBuffer classList(MOB E, com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq, java.util.Map<java.lang.String,java.lang.String> parms)
           
static java.lang.StringBuffer curses(Deity E, com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq, java.util.Map<java.lang.String,java.lang.String> parms, int borderSize)
           
static java.lang.StringBuffer expertiseList(MOB E, com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq, java.util.Map<java.lang.String,java.lang.String> parms)
           
static java.lang.StringBuffer factions(MOB E, com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq, java.util.Map<java.lang.String,java.lang.String> parms, int borderSize)
           
static int getShopCardinality(ShopKeeper SK, Environmental O)
           
static java.lang.StringBuffer itemList(Room R, MOB oldM, MOB M, com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq, java.util.Map<java.lang.String,java.lang.String> parms, int borderSize)
           
 java.lang.String name()
          The public name of this macro
static java.lang.StringBuffer powers(Deity E, com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq, java.util.Map<java.lang.String,java.lang.String> parms, int borderSize)
           
static java.lang.StringBuffer priceFactors(Economics E, com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq, java.util.Map<java.lang.String,java.lang.String> parms, int borderSize)
           
 java.lang.String runMacro(com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq, java.lang.String parm, com.planet_ink.coffee_web.interfaces.HTTPResponse httpResp)
          This method is executed only if this macro returns false for preferBinary().
static java.lang.String senses(Physical P, boolean firstTime, com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq, java.util.Map<java.lang.String,java.lang.String> parms)
           
static java.lang.StringBuffer shopkeeper(Room R, ShopKeeper E, com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq, java.util.Map<java.lang.String,java.lang.String> parms, int borderSize)
           
static java.util.Enumeration<Race> sortedRaces(com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq)
           
 
Methods inherited from class com.planet_ink.coffee_mud.WebMacros.StdWebMacro
clearWebMacros, clearWebMacros, colorwebifyOnly, compareTo, copyOf, getHTTPFileData, grabFile, helpHelp, helpHelp, helpHelp, htmlIncomingFilter, htmlIncomingFilter, htmlOutgoingFilter, htmlOutgoingFilter, ID, initializeClass, isAdminMacro, isAWebPath, L, newInstance, parseOrderedParms, parseParms, parseParms, preferBinary, runBinaryMacro, safeIncomingfilter, webify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MobData

public MobData()
Method Detail

name

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

Specified by:
name in interface CMObject
Specified by:
name in interface WebMacro
Overrides:
name in class StdWebMacro
Returns:
The public name of this macro
See Also:
Environmental.Name()

getShopCardinality

public static int getShopCardinality(ShopKeeper SK,
                                     Environmental O)

senses

public static java.lang.String senses(Physical P,
                                      boolean firstTime,
                                      com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq,
                                      java.util.Map<java.lang.String,java.lang.String> parms)

sortedRaces

public static java.util.Enumeration<Race> sortedRaces(com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq)

abilities

public static java.lang.StringBuffer abilities(MOB E,
                                               com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq,
                                               java.util.Map<java.lang.String,java.lang.String> parms,
                                               int borderSize)

expertiseList

public static java.lang.StringBuffer expertiseList(MOB E,
                                                   com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq,
                                                   java.util.Map<java.lang.String,java.lang.String> parms)

clans

public static java.lang.StringBuffer clans(MOB E,
                                           com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq,
                                           java.util.Map<java.lang.String,java.lang.String> parms,
                                           int borderSize)

blessings

public static java.lang.StringBuffer blessings(Deity E,
                                               com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq,
                                               java.util.Map<java.lang.String,java.lang.String> parms,
                                               int borderSize)

curses

public static java.lang.StringBuffer curses(Deity E,
                                            com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq,
                                            java.util.Map<java.lang.String,java.lang.String> parms,
                                            int borderSize)

factions

public static java.lang.StringBuffer factions(MOB E,
                                              com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq,
                                              java.util.Map<java.lang.String,java.lang.String> parms,
                                              int borderSize)

classList

public static java.lang.StringBuffer classList(MOB E,
                                               com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq,
                                               java.util.Map<java.lang.String,java.lang.String> parms)

powers

public static java.lang.StringBuffer powers(Deity E,
                                            com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq,
                                            java.util.Map<java.lang.String,java.lang.String> parms,
                                            int borderSize)

priceFactors

public static java.lang.StringBuffer priceFactors(Economics E,
                                                  com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq,
                                                  java.util.Map<java.lang.String,java.lang.String> parms,
                                                  int borderSize)

shopkeeper

public static java.lang.StringBuffer shopkeeper(Room R,
                                                ShopKeeper E,
                                                com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq,
                                                java.util.Map<java.lang.String,java.lang.String> parms,
                                                int borderSize)

itemList

public static java.lang.StringBuffer itemList(Room R,
                                              MOB oldM,
                                              MOB M,
                                              com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq,
                                              java.util.Map<java.lang.String,java.lang.String> parms,
                                              int borderSize)

runMacro

public java.lang.String runMacro(com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq,
                                 java.lang.String parm,
                                 com.planet_ink.coffee_web.interfaces.HTTPResponse httpResp)
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. The response object is used to set cookies and headers only. Any response body is in the return object. Since 99% of macros are only filling in an existing page, nothing will be done with that anyway, and is only important when isAWebPath return true.

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