Package megamek.client.ratgenerator
Class Ruleset
java.lang.Object
megamek.client.ratgenerator.Ruleset
Container for all the rule nodes for a faction. Has methods for processing the rules to fill out a ForceDescriptor.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptionfindForceNode(ForceDescriptor fd, int eschelon, boolean augmented) static RulesetfindRuleset(String faction) static RulesetintDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.getEschelonNames(String unitType) intgetRatingIndex(String key) getRatingsAtOrWorseThan(String rating) Returns the given equipment rating followed by every worse rating in this ruleset's rating system, ordered from the given rating down to the worst.static booleanstatic booleanstatic voidstatic voidloadData()voidstatic String
-
Method Details
-
substituteConstants
-
findRuleset
-
findRuleset
-
getCustomRankBase
Deprecated, for removal: This API element is subject to removal in a future version. -
getCustomRanks
Deprecated, for removal: This API element is subject to removal in a future version. -
processRoot
-
getRatingIndex
-
getRatingsAtOrWorseThan
Returns the given equipment rating followed by every worse rating in this ruleset's rating system, ordered from the given rating down to the worst. Used as an equipment-rating fallback ladder during unit generation: a force tries its own rating first and only steps down to worse-equipped ratings when nothing can be generated, never to a better rating. If the rating is not part of this system, the list contains only the rating itself.- Parameters:
rating- the force's own equipment rating- Returns:
- the rating and all worse ratings, closest first
-
getDefaultUnitType
-
getDefaultEschelon
-
getDefaultRating
-
getTOCNode
-
findForceNode
-
findForceNode
-
getEschelonNames
-
getEschelonName
-
getCoNode
-
getXoNode
-
getParent
-
loadConstants
-
loadData
public static void loadData() -
isInitialized
public static boolean isInitialized() -
isInitializing
public static boolean isInitializing() -
getFaction
-