Package worldBuilder
Class OverlayRule
- java.lang.Object
- 
- worldBuilder.ResourceRule
- 
- worldBuilder.OverlayRule
 
 
- 
 public class OverlayRule extends ResourceRule An extension of ResourceRules that includes information about RPGM tiles
- 
- 
Field SummaryFields Modifier and Type Field Description inta_maxrange of acceptable Z percentagesinta_minrange of acceptable Z percentagesintd_maxrange of acceptable depth percentagesintd_minrange of acceptable depth percentagesintheightdimensions (if this is a stamp)java.awt.image.BufferedImageiconpreview icon imagestatic inttile_sizeRPGMaker tile setintwidthdimensions (if this is a stamp)- 
Fields inherited from class worldBuilder.ResourceRuleclassName, debug, flexRange, floraType, id, justification, maxAltitude, maxDepth, maxFlux, maxRain, maxSlope, maxTemp, minAltitude, minDepth, minFlux, minRain, minSlope, minTemp, order, previewColor, ruleFile, ruleName, ruleset, taperedBid, vigor
 
- 
 - 
Constructor SummaryConstructors Constructor Description OverlayRule(java.lang.String name)create a new rule
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddump(java.lang.String prefix)dump out the extended field attributes (for debugging)OverlayRulefactory(java.lang.String name)Factory method (to permit subclass instantiation by ResourceRule.loadFile)voidset_attribute(java.lang.String name, int value)called from ResourceRule.loadFile ...voidset_attribute(java.lang.String name, java.lang.String value)called from ResourceRule.loadFile ...voidset_range(java.lang.String name, java.lang.String limit, double value)called from ResourceRule.loadFile ...- 
Methods inherited from class worldBuilder.ResourceRuleiterator, loadRules, size, wrongFlora
 
- 
 
- 
- 
- 
Field Detail- 
tile_sizepublic static int tile_size RPGMaker tile set
 - 
heightpublic int height dimensions (if this is a stamp)
 - 
widthpublic int width dimensions (if this is a stamp)
 - 
a_minpublic int a_min range of acceptable Z percentages
 - 
a_maxpublic int a_max range of acceptable Z percentages
 - 
d_minpublic int d_min range of acceptable depth percentages
 - 
d_maxpublic int d_max range of acceptable depth percentages
 - 
iconpublic java.awt.image.BufferedImage icon preview icon image
 
- 
 - 
Method Detail- 
factorypublic OverlayRule factory(java.lang.String name) Factory method (to permit subclass instantiation by ResourceRule.loadFile)- Parameters:
- name- of this rule Note: this method is called by ResourceRule.read() when the rule reading is complete, which means that any extended attributes have already been set (in the static save variables). We copy those into the new rule, and then reinitialize them.
 
 - 
set_attributepublic void set_attribute(java.lang.String name, java.lang.String value)called from ResourceRule.loadFile ... set an extended attribute (string value)- Overrides:
- set_attributein class- ResourceRule
- Parameters:
- name- of the attribute being set
- value- to be set
 
 - 
set_attributepublic void set_attribute(java.lang.String name, int value)called from ResourceRule.loadFile ... set an extended attribute (integer value)- Overrides:
- set_attributein class- ResourceRule
- Parameters:
- name- of the attribute being set
- value- to be set
 
 - 
set_rangepublic void set_range(java.lang.String name, java.lang.String limit, double value)called from ResourceRule.loadFile ... set an extended attribute (min/max double value)- Overrides:
- set_rangein class- ResourceRule
- Parameters:
- name- of the attribute being set
- limit- (min or max)
- value- to be set
 
 - 
dumppublic void dump(java.lang.String prefix) dump out the extended field attributes (for debugging)- Overrides:
- dumpin class- ResourceRule
- Parameters:
- prefix- ... leading blanks Note: subclass should call super.dump() and then add its own output
 
 
- 
 
-