CMObject
, Tickable
, AreaGenerationLibrary
, CMLibrary
, java.lang.Cloneable
, java.lang.Comparable<CMObject>
public class MUDPercolator extends StdLibrary implements AreaGenerationLibrary
Modifier and Type | Class | Description |
---|---|---|
protected static class |
MUDPercolator.MQLSpecialFromSet |
|
protected class |
MUDPercolator.PostProcessAttempt |
AreaGenerationLibrary.LayoutFlags, AreaGenerationLibrary.LayoutManager, AreaGenerationLibrary.LayoutNode, AreaGenerationLibrary.LayoutRuns, AreaGenerationLibrary.LayoutTags, AreaGenerationLibrary.LayoutTypes, AreaGenerationLibrary.UpdateSet
Modifier and Type | Field | Description |
---|---|---|
protected static CraftorAbility.CraftorFilter |
emptyMetacraftFilter |
|
protected java.util.Map<java.lang.Integer,java.util.List<Item>> |
farmablesCache |
|
protected static java.util.List<java.lang.String> |
ITEM_IGNORE_STATS |
|
protected static java.util.List<java.lang.String> |
MOB_IGNORE_STATS |
|
protected static java.lang.String |
POST_PROCESSING_STAT_SETS |
|
protected static CMParms.DelimiterChecker |
REQUIRES_DELIMITERS |
|
protected static char[] |
splitters |
|
protected static java.util.Set<java.lang.String> |
UPPER_REQUIRES_KEYWORDS |
idConverter
isDebugging, name, serviceClient, tickStatus
STATUS_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 |
---|---|
MUDPercolator() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
activate() |
Activates the library.
|
protected void |
addDefinition(java.lang.String definition,
java.lang.String value,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
protected Ability |
buildAbility(Modifiable E,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
protected Area |
buildArea(XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined,
int direction) |
|
protected Behavior |
buildBehavior(Modifiable E,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
void |
buildDefinedIDSet(java.util.List<XMLLibrary.XMLTag> xmlRoot,
java.util.Map<java.lang.String,java.lang.Object> defined,
java.util.Set<java.lang.String> overrideIds) |
Given an area-generation xml file, this method will return all the defined tag ids.
|
protected Exit |
buildExit(XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
protected Race |
buildGenRace(Modifiable E,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
protected java.util.List<Item> |
buildItem(XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
protected MOB |
buildMob(XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
java.lang.String |
buildQuestScript(XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined,
Modifiable E) |
Builds a quest script based around the given variables using the given xml tag root.
|
protected java.lang.String |
buildQuestTemplate(Modifiable E,
java.util.List<java.lang.String> ignoreStats,
java.lang.String defPrefix,
java.lang.String tagName,
XMLLibrary.XMLTag valPiece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
Room |
buildRoom(XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined,
Exit[] exits,
int direction) |
Given a specific ROOM generation tag, this method will return the room selected
by that tag piece, with the entrace to it being in the given direction
|
protected boolean |
checkMetacraftItem(Item I,
CraftorAbility.CraftorFilter filter) |
|
void |
checkRequirements(XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
Does nothing but check the requirements to build the given xml tag piece, and compares it with
the variables in the given id definition map, to see if all requirements are met.
|
protected void |
checkRequirements(java.util.Map<java.lang.String,java.lang.Object> defined,
java.lang.String requirements) |
|
protected boolean |
checkRequirementsValue(java.lang.String validValue,
java.lang.String value) |
|
protected java.lang.String |
cleanRequirementsValue(java.lang.String values,
java.lang.String value) |
|
protected void |
clearNewlyDefined(java.util.Map<java.lang.String,java.lang.Object> defined,
java.util.Set<java.lang.String> exceptSet,
java.lang.String prefix) |
|
protected java.lang.String |
convertMQLObjectToString(java.lang.Object o1) |
|
protected java.util.List<ItemCraftor.CraftedItem> |
craftAllOfThisRecipe(ItemCraftor skill,
int material,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
protected void |
defineReward(Modifiable E,
java.util.List<java.lang.String> ignoreStats,
java.lang.String defPrefix,
XMLLibrary.XMLTag piece,
java.lang.String value,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
protected void |
defineReward(Modifiable E,
java.util.List<java.lang.String> ignoreStats,
java.lang.String defPrefix,
java.lang.String defineString,
XMLLibrary.XMLTag piece,
java.lang.Object value,
java.util.Map<java.lang.String,java.lang.Object> defined,
boolean recurseAllowed) |
|
void |
defineReward(XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
If an xml tag is selected manually, by something outside the library, then
certain post-selection processes are not properly done, making generation
based on the tag potentially impossible.
|
protected boolean |
doMQLComparison(com.planet_ink.coffee_mud.Libraries.MUDPercolator.MQLClause.WhereComp comp,
java.util.List<java.lang.Object> allFrom,
java.lang.Object from,
java.util.Map<java.lang.String,java.lang.Object> cache,
java.lang.String mql,
Modifiable E,
java.util.List<java.lang.String> ignoreStats,
java.lang.String defPrefix,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
protected boolean |
doMQLComparison(java.lang.Object lhso,
com.planet_ink.coffee_mud.Libraries.MUDPercolator.MQLClause.WhereComparator comp,
java.lang.Object rhso,
java.util.List<java.lang.Object> allFrom,
java.lang.Object from,
Modifiable E,
java.util.List<java.lang.String> ignoreStats,
java.lang.String defPrefix,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
doMQLSelectObjects(Modifiable E,
java.lang.String mql) |
Returns the raw output from an MQL query that begins with SELECT:
|
protected java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
doMQLSelectObjs(Modifiable E,
java.util.List<java.lang.String> ignoreStats,
java.lang.String defPrefix,
java.lang.String str,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
java.lang.String |
doMQLSelectString(Modifiable E,
java.lang.String mql) |
Returns a flattened string result from an MQL query that begins with SELECT:
|
protected java.lang.String |
doMQLSelectString(Modifiable E,
java.util.List<java.lang.String> ignoreStats,
java.lang.String defPrefix,
java.lang.String str,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
java.util.List<java.util.Map<java.lang.String,java.lang.String>> |
doMQLSelectStrings(Modifiable E,
java.lang.String mql) |
Returns the string output from an MQL query that begins with SELECT:
|
protected java.util.List<java.util.Map<java.lang.String,java.lang.String>> |
doMQLSelectStrs(Modifiable E,
java.util.List<java.lang.String> ignoreStats,
java.lang.String defPrefix,
java.lang.String str,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
java.util.List<AreaGenerationLibrary.UpdateSet> |
doMQLUpdateObjects(Modifiable E,
java.lang.String mql) |
Updates objects using an MQL query that begins with UPDATE:
|
protected boolean |
doMQLWhereClauseFilter(com.planet_ink.coffee_mud.Libraries.MUDPercolator.MQLClause.WhereClause whereClause,
java.util.List<java.lang.Object> allFrom,
java.lang.Object from,
java.util.Map<java.lang.String,java.lang.Object> cache,
java.lang.String mql,
Modifiable E,
java.util.List<java.lang.String> ignoreStats,
java.lang.String defPrefix,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
protected void |
doneWithMQLObject(java.lang.Object o) |
|
protected java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
doSubObjSelect(Modifiable E,
java.util.List<java.lang.String> ignoreStats,
java.lang.String defPrefix,
com.planet_ink.coffee_mud.Libraries.MUDPercolator.MQLClause clause,
java.lang.String mql,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
protected java.util.List<AreaGenerationLibrary.UpdateSet> |
doSubObjUpdate(Modifiable E,
java.util.List<java.lang.String> ignoreStats,
java.lang.String defPrefix,
com.planet_ink.coffee_mud.Libraries.MUDPercolator.MQLClause clause,
java.lang.String mql,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
protected java.util.List<java.util.Map<java.lang.String,java.lang.String>> |
doSubSelectStr(Modifiable E,
java.util.List<java.lang.String> ignoreStats,
java.lang.String defPrefix,
com.planet_ink.coffee_mud.Libraries.MUDPercolator.MQLClause clause,
java.lang.String mql,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
boolean |
fillInArea(XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined,
Area A,
int direction) |
Given a specific AREA generation tag, and an empty area, this method will
populate the area with rooms from the given tag piece, with the entrance
to it being in the given direction.
|
protected boolean |
fillOutCopyCodes(Modifiable E,
java.util.List<java.lang.String> ignoreStats,
java.lang.String defPrefix,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
protected void |
fillOutCopyStats(Modifiable E,
Modifiable E2) |
|
protected void |
fillOutRequiredStatCodeSafe(Modifiable E,
java.util.List<java.lang.String> ignoreStats,
java.lang.String defPrefix,
java.lang.String tagName,
java.lang.String statName,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
protected java.lang.String |
fillOutStatCode(Modifiable E,
java.util.List<java.lang.String> ignoreStats,
java.lang.String defPrefix,
java.lang.String stat,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined,
boolean debug) |
|
protected void |
fillOutStatCodes(Modifiable E,
java.util.List<java.lang.String> ignoreStats,
java.lang.String defPrefix,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
protected java.util.List<Ability> |
findAbilities(Modifiable E,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined,
com.planet_ink.coffee_mud.Libraries.MUDPercolator.BuildCallback callBack) |
|
protected java.util.List<Ability> |
findAbilities(Modifiable E,
java.lang.String tagName,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined,
com.planet_ink.coffee_mud.Libraries.MUDPercolator.BuildCallback callBack) |
|
protected java.util.List<Ability> |
findAffects(Modifiable E,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined,
com.planet_ink.coffee_mud.Libraries.MUDPercolator.BuildCallback callBack) |
|
Area |
findArea(XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined,
int directions) |
Given a specific AREA generation tag, this method will return the area selected
by that tag piece, with the entrance to it being in the given direction
|
protected java.util.List<Behavior> |
findBehaviors(Modifiable E,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
protected java.util.List<Item> |
findContents(XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
protected Exit |
findExit(Modifiable M,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
protected java.util.List<Exit> |
findExits(Modifiable M,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined,
com.planet_ink.coffee_mud.Libraries.MUDPercolator.BuildCallback callBack) |
|
protected java.util.List<Item> |
findItems(Modifiable E,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined,
com.planet_ink.coffee_mud.Libraries.MUDPercolator.BuildCallback callBack) |
|
java.util.List<Item> |
findItems(XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
Given a specific ITEM generation tag, this method will return the items selected
by that tag piece.
|
protected java.util.List<MOB> |
findMobs(Modifiable E,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined,
com.planet_ink.coffee_mud.Libraries.MUDPercolator.BuildCallback callBack) |
|
java.util.List<MOB> |
findMobs(XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
Given a specific MOB generation tag, this method will return the MOBs selected
by that tag piece.
|
protected java.lang.Object |
findObject(Modifiable E,
java.util.List<java.lang.String> ignoreStats,
java.lang.String defPrefix,
java.lang.String tagName,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
protected java.lang.String |
findOptionalString(Modifiable E,
java.util.List<java.lang.String> ignoreStats,
java.lang.String defPrefix,
java.lang.String tagName,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined,
boolean debug) |
|
protected java.lang.String |
findOptionalStringNow(Modifiable E,
java.util.List<java.lang.String> ignoreStats,
java.lang.String defPrefix,
java.lang.String tagName,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined,
boolean debug) |
|
protected java.util.List<AbilityMapper.AbilityMapping> |
findRaceAbles(Modifiable E,
java.lang.String tagName,
java.lang.String prefix,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
protected java.util.List<Race> |
findRaces(Modifiable E,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
protected Room |
findRoom(Area A,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined,
Exit[] exits,
int directions) |
|
protected PairVector<Room,Exit[]> |
findRooms(XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined,
Exit[] exits,
int direction) |
|
protected java.util.List<Triad<Environmental,java.lang.Integer,java.lang.Long>> |
findShopInventory(Modifiable E,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
protected java.lang.String |
findString(Modifiable E,
java.util.List<java.lang.String> ignoreStats,
java.lang.String defPrefix,
java.lang.String tagName,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
java.lang.String |
findString(java.lang.String tagName,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
Returns a string of the given tag name type, from the given top-level xml tag piece that
resolves to a string, and with the given pre-defined id set.
|
protected java.lang.String |
findStringNow(Modifiable E,
java.util.List<java.lang.String> ignoreStats,
java.lang.String defPrefix,
java.lang.String tagName,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
protected java.lang.String |
findStringNow(java.lang.String tagName,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
protected java.util.List<java.lang.Object> |
flattenMQLObjectList(java.util.Collection<java.lang.Object> from) |
|
protected java.util.List<XMLLibrary.XMLTag> |
getAllChoices(Modifiable E,
java.util.List<java.lang.String> ignoreStats,
java.lang.String defPrefix,
java.lang.String tagName,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined,
boolean skipTest) |
|
java.util.List<XMLLibrary.XMLTag> |
getAllChoices(java.lang.String tagName,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
Given a root xml tag and a tag name, this method will return all matching xml tag pieces.
|
protected java.util.List<Item> |
getAllFarmables(int materialType) |
|
protected java.lang.Object |
getFinalMQLValue(java.lang.String[] strpath,
java.util.List<java.lang.Object> allFrom,
java.lang.Object from,
java.util.Map<java.lang.String,java.lang.Object> cache,
java.lang.String mql,
Modifiable E,
java.util.List<java.lang.String> ignoreStats,
java.lang.String defPrefix,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined,
boolean literalsOK) |
|
AreaGenerationLibrary.LayoutManager |
getLayoutManager(java.lang.String named) |
Returns the layout manager of the given name.
|
protected void |
getMetacraftFilter(java.lang.String recipe,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined,
CraftorAbility.CraftorFilter filter) |
|
protected java.util.Set<java.lang.String> |
getPrevouslyDefined(java.util.Map<java.lang.String,java.lang.Object> defined,
java.lang.String prefix) |
|
protected java.util.List<Item> |
getRaceItems(Modifiable E,
java.lang.String tagName,
java.lang.String prefix,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
protected java.lang.String |
getRequirementsDescription(java.lang.String values) |
|
protected java.lang.Object |
getSimpleMQLValue(java.lang.String valueName,
java.lang.Object from) |
|
java.util.Map<java.lang.String,java.lang.String> |
getUnfilledRequirements(java.util.Map<java.lang.String,java.lang.Object> defined,
XMLLibrary.XMLTag piece) |
Check the requirements to build the given xml tag piece, and compares it with
the variables in the given id definition map, to see if all requirements are met.
|
java.lang.String |
ID() |
The CoffeeMud Java Class ID shared by all instances of
this object.
|
protected void |
layoutFollow(AreaGenerationLibrary.LayoutNode n,
AreaGenerationLibrary.LayoutTypes type,
int direction,
java.util.HashSet<AreaGenerationLibrary.LayoutNode> nodesAlreadyGrouped,
java.util.List<AreaGenerationLibrary.LayoutNode> group) |
|
protected void |
layoutRecursiveFill(AreaGenerationLibrary.LayoutNode n,
java.util.HashSet<AreaGenerationLibrary.LayoutNode> nodesDone,
java.util.Vector<AreaGenerationLibrary.LayoutNode> group,
AreaGenerationLibrary.LayoutTypes type) |
|
protected Room |
layOutRooms(Area A,
AreaGenerationLibrary.LayoutManager layoutManager,
int size,
int direction,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
protected int |
makeNewLevel(int level,
int oldMin,
int oldMax,
int newMin,
int newMax) |
|
protected java.util.List<java.lang.Object> |
parseMQLCMFile(CMFile F,
java.lang.String mql) |
|
protected java.util.List<java.lang.Object> |
parseMQLFrom(java.lang.String[] fromClause,
java.lang.String mql,
Modifiable E,
java.util.List<java.lang.String> ignoreStats,
java.lang.String defPrefix,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined,
boolean literalsOK) |
|
protected java.util.List<com.planet_ink.coffee_mud.Libraries.MUDPercolator.Varidentifier> |
parseVariables(java.lang.String str) |
|
void |
postProcess(java.util.Map<java.lang.String,java.lang.Object> defined) |
Sometimes an object cannot be generated at a given time because some tag which
will be defined later has not yet been defined, and cannot be resolved at
generation time.
|
protected java.lang.String |
PostProcessAttempter(java.util.Map<java.lang.String,java.lang.Object> defined,
MUDPercolator.PostProcessAttempt attempter) |
|
protected void |
preDefineReward(Modifiable E,
java.util.List<java.lang.String> ignoreStats,
java.lang.String defPrefix,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
void |
preDefineReward(XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
If an xml tag is selected manually, by something outside the library, then
certain pre-selection processes are not properly done, making generation
based on the tag potentially impossible.
|
protected XMLLibrary.XMLTag |
processLikeParm(java.lang.String tagName,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
protected Room |
processRoom(Area A,
int direction,
XMLLibrary.XMLTag piece,
AreaGenerationLibrary.LayoutNode node,
java.util.Map<java.lang.String,java.lang.Object> groupDefined) |
|
boolean |
relevelRoom(Room room,
int oldMin,
int oldMax,
int newMin,
int newMax) |
Adjusts the levels of all mobs, items, and mob-items in the room by adjusting
them from their place in an existing range to a new range.Does not save -- that's up to you.
|
protected java.lang.String |
replaceLineStartsWithIgnoreCase(java.lang.String wholeText,
java.lang.String lineStarter,
java.lang.String fullNewLine) |
|
protected java.util.List<XMLLibrary.XMLTag> |
selectChoices(Modifiable E,
java.lang.String tagName,
java.util.List<java.lang.String> ignoreStats,
java.lang.String defPrefix,
java.util.List<XMLLibrary.XMLTag> choices,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
boolean |
shutdown() |
Shuts down the library.
|
protected java.lang.String |
strFilter(Modifiable E,
java.util.List<java.lang.String> ignoreStats,
java.lang.String defPrefix,
java.lang.String str,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
protected java.lang.String |
strFilterNow(Modifiable E,
java.util.List<java.lang.String> ignoreStats,
java.lang.String defPrefix,
java.lang.String str,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
protected boolean |
testCondition(Modifiable E,
java.util.List<java.lang.String> ignoreStats,
java.lang.String defPrefix,
java.lang.String condition,
XMLLibrary.XMLTag piece,
java.util.Map<java.lang.String,java.lang.Object> defined) |
|
protected void |
updateLayoutDefinitions(java.util.Map<java.lang.String,java.lang.Object> defined,
java.util.Map<java.lang.String,java.lang.Object> groupDefined,
java.util.Map<java.util.List<AreaGenerationLibrary.LayoutNode>,java.util.Map<java.lang.String,java.lang.Object>> groupDefinitions,
java.util.List<java.util.List<AreaGenerationLibrary.LayoutNode>> roomGroups) |
getServiceClient, L, propertiesLoaded
copyOf, initializeClass, name, newInstance
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkDatabase, compareTo, copyOf, getServiceClient, getTickStatus, initializeClass, L, name, newInstance, propertiesLoaded, setThreadStatus, tick
protected static final char[] splitters
protected static final CraftorAbility.CraftorFilter emptyMetacraftFilter
protected static final java.lang.String POST_PROCESSING_STAT_SETS
protected static final java.util.Set<java.lang.String> UPPER_REQUIRES_KEYWORDS
protected static final CMParms.DelimiterChecker REQUIRES_DELIMITERS
protected static final java.util.List<java.lang.String> ITEM_IGNORE_STATS
protected static final java.util.List<java.lang.String> MOB_IGNORE_STATS
protected java.util.Map<java.lang.Integer,java.util.List<Item>> farmablesCache
public java.lang.String ID()
CMObject
ID
in interface CMObject
ID
in class StdLibrary
public AreaGenerationLibrary.LayoutManager getLayoutManager(java.lang.String named)
AreaGenerationLibrary
getLayoutManager
in interface AreaGenerationLibrary
named
- the name of the layout managerpublic void buildDefinedIDSet(java.util.List<XMLLibrary.XMLTag> xmlRoot, java.util.Map<java.lang.String,java.lang.Object> defined, java.util.Set<java.lang.String> overrideIds)
AreaGenerationLibrary
buildDefinedIDSet
in interface AreaGenerationLibrary
xmlRoot
- the root of the area-generation xml filedefined
- a map of ids to objects, whether strings or tags.overrideIds
- a set of ids that are allowed to be duplicated, because they overridepublic boolean activate()
CMLibrary
activate
in interface CMLibrary
activate
in class StdLibrary
CMLibrary.shutdown()
public boolean shutdown()
CMLibrary
shutdown
in interface CMLibrary
shutdown
in class StdLibrary
CMLibrary.activate()
protected final java.lang.String PostProcessAttempter(java.util.Map<java.lang.String,java.lang.Object> defined, MUDPercolator.PostProcessAttempt attempter) throws CMException
CMException
protected void fillOutRequiredStatCodeSafe(Modifiable E, java.util.List<java.lang.String> ignoreStats, java.lang.String defPrefix, java.lang.String tagName, java.lang.String statName, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException
CMException
public Room buildRoom(XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined, Exit[] exits, int direction) throws CMException
AreaGenerationLibrary
buildRoom
in interface AreaGenerationLibrary
piece
- the identified tag that can return a roomdefined
- the defined id set from the entire xml documentexits
- pre-defined exits from this room, if anydirection
- the direction of entrance to this roomCMException
- any parsing or generation errorsAreaGenerationLibrary.buildDefinedIDSet(List, Map, Set)
public void postProcess(java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException
AreaGenerationLibrary
postProcess
in interface AreaGenerationLibrary
defined
- the defined ids after they've gone through generating an objectCMException
- any parsing or generation errorsprotected void layoutRecursiveFill(AreaGenerationLibrary.LayoutNode n, java.util.HashSet<AreaGenerationLibrary.LayoutNode> nodesDone, java.util.Vector<AreaGenerationLibrary.LayoutNode> group, AreaGenerationLibrary.LayoutTypes type)
protected void layoutFollow(AreaGenerationLibrary.LayoutNode n, AreaGenerationLibrary.LayoutTypes type, int direction, java.util.HashSet<AreaGenerationLibrary.LayoutNode> nodesAlreadyGrouped, java.util.List<AreaGenerationLibrary.LayoutNode> group)
public Area findArea(XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined, int directions) throws CMException
AreaGenerationLibrary
findArea
in interface AreaGenerationLibrary
piece
- the identified tag that can return a roomdefined
- the defined id set from the entire xml documentdirections
- the direction of entrance to this roomCMException
- any parsing or generation errorsAreaGenerationLibrary.buildDefinedIDSet(List, Map, Set)
protected Area buildArea(XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined, int direction) throws CMException
CMException
protected void updateLayoutDefinitions(java.util.Map<java.lang.String,java.lang.Object> defined, java.util.Map<java.lang.String,java.lang.Object> groupDefined, java.util.Map<java.util.List<AreaGenerationLibrary.LayoutNode>,java.util.Map<java.lang.String,java.lang.Object>> groupDefinitions, java.util.List<java.util.List<AreaGenerationLibrary.LayoutNode>> roomGroups)
protected Room layOutRooms(Area A, AreaGenerationLibrary.LayoutManager layoutManager, int size, int direction, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException
CMException
public boolean fillInArea(XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined, Area A, int direction) throws CMException
AreaGenerationLibrary
fillInArea
in interface AreaGenerationLibrary
piece
- the identified tag that can return a roomdefined
- the defined id set from the entire xml documentA
- the area to put the rooms intodirection
- the direction of entrance to this roomCMException
- any parsing or generation errorsAreaGenerationLibrary.buildDefinedIDSet(List, Map, Set)
protected Room processRoom(Area A, int direction, XMLLibrary.XMLTag piece, AreaGenerationLibrary.LayoutNode node, java.util.Map<java.lang.String,java.lang.Object> groupDefined) throws CMException
CMException
public java.util.List<MOB> findMobs(XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException
AreaGenerationLibrary
findMobs
in interface AreaGenerationLibrary
piece
- the identified tag that can return MOBsdefined
- the defined id set from the entire xml documentCMException
- any parsing or generation errorsAreaGenerationLibrary.buildDefinedIDSet(List, Map, Set)
protected java.util.List<MOB> findMobs(Modifiable E, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined, com.planet_ink.coffee_mud.Libraries.MUDPercolator.BuildCallback callBack) throws CMException
CMException
protected Room findRoom(Area A, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined, Exit[] exits, int directions) throws CMException
CMException
protected PairVector<Room,Exit[]> findRooms(XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined, Exit[] exits, int direction) throws CMException
CMException
protected Exit findExit(Modifiable M, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException
CMException
protected java.util.List<com.planet_ink.coffee_mud.Libraries.MUDPercolator.Varidentifier> parseVariables(java.lang.String str)
protected java.lang.String fillOutStatCode(Modifiable E, java.util.List<java.lang.String> ignoreStats, java.lang.String defPrefix, java.lang.String stat, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined, boolean debug)
protected void fillOutStatCodes(Modifiable E, java.util.List<java.lang.String> ignoreStats, java.lang.String defPrefix, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined)
protected void fillOutCopyStats(Modifiable E, Modifiable E2)
protected boolean fillOutCopyCodes(Modifiable E, java.util.List<java.lang.String> ignoreStats, java.lang.String defPrefix, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException
CMException
protected MOB buildMob(XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException
CMException
protected java.util.List<Exit> findExits(Modifiable M, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined, com.planet_ink.coffee_mud.Libraries.MUDPercolator.BuildCallback callBack) throws CMException
CMException
protected Exit buildExit(XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException
CMException
protected java.util.List<Triad<Environmental,java.lang.Integer,java.lang.Long>> findShopInventory(Modifiable E, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException
CMException
protected java.util.Set<java.lang.String> getPrevouslyDefined(java.util.Map<java.lang.String,java.lang.Object> defined, java.lang.String prefix)
protected void clearNewlyDefined(java.util.Map<java.lang.String,java.lang.Object> defined, java.util.Set<java.lang.String> exceptSet, java.lang.String prefix)
public java.util.List<Item> findItems(XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException
AreaGenerationLibrary
findItems
in interface AreaGenerationLibrary
piece
- the identified tag that can return itemsdefined
- the defined id set from the entire xml documentCMException
- any parsing or generation errorsAreaGenerationLibrary.buildDefinedIDSet(List, Map, Set)
protected java.util.List<Item> findItems(Modifiable E, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined, com.planet_ink.coffee_mud.Libraries.MUDPercolator.BuildCallback callBack) throws CMException
CMException
protected java.util.List<Item> findContents(XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException
CMException
protected void getMetacraftFilter(java.lang.String recipe, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined, CraftorAbility.CraftorFilter filter) throws CMException
CMException
protected java.util.List<ItemCraftor.CraftedItem> craftAllOfThisRecipe(ItemCraftor skill, int material, java.util.Map<java.lang.String,java.lang.Object> defined)
protected boolean checkMetacraftItem(Item I, CraftorAbility.CraftorFilter filter)
protected java.util.List<Item> buildItem(XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException
CMException
protected java.util.List<Ability> findAffects(Modifiable E, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined, com.planet_ink.coffee_mud.Libraries.MUDPercolator.BuildCallback callBack) throws CMException
CMException
protected java.util.List<Ability> findAbilities(Modifiable E, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined, com.planet_ink.coffee_mud.Libraries.MUDPercolator.BuildCallback callBack) throws CMException
CMException
protected java.util.List<Ability> findAbilities(Modifiable E, java.lang.String tagName, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined, com.planet_ink.coffee_mud.Libraries.MUDPercolator.BuildCallback callBack) throws CMException
CMException
protected java.util.List<Behavior> findBehaviors(Modifiable E, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException
CMException
protected java.util.List<Race> findRaces(Modifiable E, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException, com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
CMException
com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
protected Ability buildAbility(Modifiable E, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException
CMException
protected Behavior buildBehavior(Modifiable E, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException
CMException
protected java.util.List<AbilityMapper.AbilityMapping> findRaceAbles(Modifiable E, java.lang.String tagName, java.lang.String prefix, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException
CMException
protected java.util.List<Item> getRaceItems(Modifiable E, java.lang.String tagName, java.lang.String prefix, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException
CMException
protected Race buildGenRace(Modifiable E, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException
CMException
protected void addDefinition(java.lang.String definition, java.lang.String value, java.util.Map<java.lang.String,java.lang.Object> defined)
protected java.lang.String findOptionalStringNow(Modifiable E, java.util.List<java.lang.String> ignoreStats, java.lang.String defPrefix, java.lang.String tagName, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined, boolean debug)
protected java.lang.String findOptionalString(Modifiable E, java.util.List<java.lang.String> ignoreStats, java.lang.String defPrefix, java.lang.String tagName, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined, boolean debug) throws com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
public void defineReward(XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException
AreaGenerationLibrary
defineReward
in interface AreaGenerationLibrary
piece
- the selected xml tag piecedefined
- the defined id set from the entire xml documentCMException
- any parsing or generation errorsprotected void defineReward(Modifiable E, java.util.List<java.lang.String> ignoreStats, java.lang.String defPrefix, XMLLibrary.XMLTag piece, java.lang.String value, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException
CMException
public void preDefineReward(XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException
AreaGenerationLibrary
preDefineReward
in interface AreaGenerationLibrary
piece
- the selected xml tag piecedefined
- the defined id set from the entire xml documentCMException
- any parsing or generation errorsprotected void preDefineReward(Modifiable E, java.util.List<java.lang.String> ignoreStats, java.lang.String defPrefix, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException
CMException
protected void defineReward(Modifiable E, java.util.List<java.lang.String> ignoreStats, java.lang.String defPrefix, java.lang.String defineString, XMLLibrary.XMLTag piece, java.lang.Object value, java.util.Map<java.lang.String,java.lang.Object> defined, boolean recurseAllowed) throws CMException, com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
CMException
com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
protected java.lang.String findStringNow(Modifiable E, java.util.List<java.lang.String> ignoreStats, java.lang.String defPrefix, java.lang.String tagName, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException
CMException
protected java.lang.String replaceLineStartsWithIgnoreCase(java.lang.String wholeText, java.lang.String lineStarter, java.lang.String fullNewLine)
protected java.lang.String buildQuestTemplate(Modifiable E, java.util.List<java.lang.String> ignoreStats, java.lang.String defPrefix, java.lang.String tagName, XMLLibrary.XMLTag valPiece, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException, com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
CMException
com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
protected java.lang.String findString(Modifiable E, java.util.List<java.lang.String> ignoreStats, java.lang.String defPrefix, java.lang.String tagName, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException, com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
CMException
com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
public java.lang.String buildQuestScript(XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined, Modifiable E) throws CMException
AreaGenerationLibrary
buildQuestScript
in interface AreaGenerationLibrary
piece
- the identified tag that can return a roomdefined
- the defined id set from the entire xml documentE
- a given set object or null (such as an area, room, or mob)CMException
- any parsing or generation errorsAreaGenerationLibrary.buildDefinedIDSet(List, Map, Set)
protected java.lang.Object findObject(Modifiable E, java.util.List<java.lang.String> ignoreStats, java.lang.String defPrefix, java.lang.String tagName, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException, com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
CMException
com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
protected XMLLibrary.XMLTag processLikeParm(java.lang.String tagName, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException
CMException
public java.util.List<XMLLibrary.XMLTag> getAllChoices(java.lang.String tagName, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException
AreaGenerationLibrary
getAllChoices
in interface AreaGenerationLibrary
tagName
- the name of the tag to search forpiece
- the root xml tag piecedefined
- the defined id set from the entire xml documentCMException
- any parsing or generation errorsprotected java.util.List<XMLLibrary.XMLTag> getAllChoices(Modifiable E, java.util.List<java.lang.String> ignoreStats, java.lang.String defPrefix, java.lang.String tagName, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined, boolean skipTest) throws CMException, com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
CMException
com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
protected boolean testCondition(Modifiable E, java.util.List<java.lang.String> ignoreStats, java.lang.String defPrefix, java.lang.String condition, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
protected java.lang.String getRequirementsDescription(java.lang.String values)
protected boolean checkRequirementsValue(java.lang.String validValue, java.lang.String value)
protected java.lang.String cleanRequirementsValue(java.lang.String values, java.lang.String value)
public java.util.Map<java.lang.String,java.lang.String> getUnfilledRequirements(java.util.Map<java.lang.String,java.lang.Object> defined, XMLLibrary.XMLTag piece)
AreaGenerationLibrary
getUnfilledRequirements
in interface AreaGenerationLibrary
defined
- the defined id set from the entire xml document, and the userpiece
- the xml tag piece you want to buildprotected void checkRequirements(java.util.Map<java.lang.String,java.lang.Object> defined, java.lang.String requirements) throws CMException
CMException
public void checkRequirements(XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException
AreaGenerationLibrary
checkRequirements
in interface AreaGenerationLibrary
piece
- the xml tag piece you want to builddefined
- the defined id set from the entire xml document, and the userCMException
- any parsing or generation errorsprotected java.util.List<XMLLibrary.XMLTag> selectChoices(Modifiable E, java.lang.String tagName, java.util.List<java.lang.String> ignoreStats, java.lang.String defPrefix, java.util.List<XMLLibrary.XMLTag> choices, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException, com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
CMException
com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
protected java.lang.String strFilterNow(Modifiable E, java.util.List<java.lang.String> ignoreStats, java.lang.String defPrefix, java.lang.String str, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException
CMException
protected void doneWithMQLObject(java.lang.Object o)
protected java.util.List<java.lang.Object> parseMQLCMFile(CMFile F, java.lang.String mql) throws MQLException
MQLException
protected java.util.List<java.lang.Object> flattenMQLObjectList(java.util.Collection<java.lang.Object> from)
protected java.util.List<java.lang.Object> parseMQLFrom(java.lang.String[] fromClause, java.lang.String mql, Modifiable E, java.util.List<java.lang.String> ignoreStats, java.lang.String defPrefix, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined, boolean literalsOK) throws MQLException, com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
MQLException
com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
protected java.lang.Object getSimpleMQLValue(java.lang.String valueName, java.lang.Object from)
protected java.lang.Object getFinalMQLValue(java.lang.String[] strpath, java.util.List<java.lang.Object> allFrom, java.lang.Object from, java.util.Map<java.lang.String,java.lang.Object> cache, java.lang.String mql, Modifiable E, java.util.List<java.lang.String> ignoreStats, java.lang.String defPrefix, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined, boolean literalsOK) throws MQLException, com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
MQLException
com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
protected boolean doMQLComparison(java.lang.Object lhso, com.planet_ink.coffee_mud.Libraries.MUDPercolator.MQLClause.WhereComparator comp, java.lang.Object rhso, java.util.List<java.lang.Object> allFrom, java.lang.Object from, Modifiable E, java.util.List<java.lang.String> ignoreStats, java.lang.String defPrefix, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws MQLException, com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
MQLException
com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
protected boolean doMQLComparison(com.planet_ink.coffee_mud.Libraries.MUDPercolator.MQLClause.WhereComp comp, java.util.List<java.lang.Object> allFrom, java.lang.Object from, java.util.Map<java.lang.String,java.lang.Object> cache, java.lang.String mql, Modifiable E, java.util.List<java.lang.String> ignoreStats, java.lang.String defPrefix, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws MQLException, com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
MQLException
com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
protected boolean doMQLWhereClauseFilter(com.planet_ink.coffee_mud.Libraries.MUDPercolator.MQLClause.WhereClause whereClause, java.util.List<java.lang.Object> allFrom, java.lang.Object from, java.util.Map<java.lang.String,java.lang.Object> cache, java.lang.String mql, Modifiable E, java.util.List<java.lang.String> ignoreStats, java.lang.String defPrefix, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws MQLException, com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
MQLException
com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
protected java.util.List<AreaGenerationLibrary.UpdateSet> doSubObjUpdate(Modifiable E, java.util.List<java.lang.String> ignoreStats, java.lang.String defPrefix, com.planet_ink.coffee_mud.Libraries.MUDPercolator.MQLClause clause, java.lang.String mql, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws MQLException, com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
MQLException
com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
protected java.util.List<java.util.Map<java.lang.String,java.lang.Object>> doSubObjSelect(Modifiable E, java.util.List<java.lang.String> ignoreStats, java.lang.String defPrefix, com.planet_ink.coffee_mud.Libraries.MUDPercolator.MQLClause clause, java.lang.String mql, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws MQLException, com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
MQLException
com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
protected java.lang.String convertMQLObjectToString(java.lang.Object o1)
protected java.util.List<java.util.Map<java.lang.String,java.lang.String>> doSubSelectStr(Modifiable E, java.util.List<java.lang.String> ignoreStats, java.lang.String defPrefix, com.planet_ink.coffee_mud.Libraries.MUDPercolator.MQLClause clause, java.lang.String mql, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws MQLException, com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
MQLException
com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
protected java.util.List<java.util.Map<java.lang.String,java.lang.String>> doMQLSelectStrs(Modifiable E, java.util.List<java.lang.String> ignoreStats, java.lang.String defPrefix, java.lang.String str, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws MQLException, com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
MQLException
com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
protected java.util.List<java.util.Map<java.lang.String,java.lang.Object>> doMQLSelectObjs(Modifiable E, java.util.List<java.lang.String> ignoreStats, java.lang.String defPrefix, java.lang.String str, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws MQLException, com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
MQLException
com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
protected java.lang.String doMQLSelectString(Modifiable E, java.util.List<java.lang.String> ignoreStats, java.lang.String defPrefix, java.lang.String str, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws MQLException, com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
MQLException
com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
public java.lang.String doMQLSelectString(Modifiable E, java.lang.String mql)
AreaGenerationLibrary
doMQLSelectString
in interface AreaGenerationLibrary
E
- a random object you want to use as a base, or nullmql
- the MQL querypublic java.util.List<java.util.Map<java.lang.String,java.lang.Object>> doMQLSelectObjects(Modifiable E, java.lang.String mql) throws MQLException
AreaGenerationLibrary
doMQLSelectObjects
in interface AreaGenerationLibrary
E
- a random object you want to use as a base, or nullmql
- the MQL queryMQLException
- something went wrongpublic java.util.List<java.util.Map<java.lang.String,java.lang.String>> doMQLSelectStrings(Modifiable E, java.lang.String mql) throws MQLException
AreaGenerationLibrary
doMQLSelectStrings
in interface AreaGenerationLibrary
E
- a random object you want to use as a base, or nullmql
- the MQL queryMQLException
- something went wrongpublic java.util.List<AreaGenerationLibrary.UpdateSet> doMQLUpdateObjects(Modifiable E, java.lang.String mql) throws MQLException
AreaGenerationLibrary
doMQLUpdateObjects
in interface AreaGenerationLibrary
E
- a random object you want to use as a base, or nullmql
- the MQL queryMQLException
- something went wrongprotected java.lang.String strFilter(Modifiable E, java.util.List<java.lang.String> ignoreStats, java.lang.String defPrefix, java.lang.String str, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException, com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
CMException
com.planet_ink.coffee_mud.Libraries.MUDPercolator.PostProcessException
public java.lang.String findString(java.lang.String tagName, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException
AreaGenerationLibrary
findString
in interface AreaGenerationLibrary
tagName
- the name of the string tagpiece
- the top level piece, probably of type tagnamedefined
- the pre-defined id set from the entire xml documentCMException
- any parsing or generation errorsAreaGenerationLibrary.buildDefinedIDSet(List, Map, Set)
protected java.lang.String findStringNow(java.lang.String tagName, XMLLibrary.XMLTag piece, java.util.Map<java.lang.String,java.lang.Object> defined) throws CMException
CMException
protected int makeNewLevel(int level, int oldMin, int oldMax, int newMin, int newMax)
public boolean relevelRoom(Room room, int oldMin, int oldMax, int newMin, int newMax)
AreaGenerationLibrary
relevelRoom
in interface AreaGenerationLibrary
room
- the room to adjustoldMin
- current minimum level range for the rooms areaoldMax
- current maximum level range for the rooms areanewMin
- new minimum level range for the rooms areanewMax
- new maximum level range for the rooms areaprotected java.util.List<Item> getAllFarmables(int materialType)