Class RulesetNode

java.lang.Object
megamek.client.ratgenerator.RulesetNode
Direct Known Subclasses:
CommanderNode, DefaultsNode, ForceNode, OptionGroupNode, SubForcesNode, TOCNode, ValueNode

public class RulesetNode extends Object
Base class of all nodes in the Force Generator faction ruleset files.
  • Field Details

  • Constructor Details

    • RulesetNode

      protected RulesetNode()
  • Method Details

    • createFromXml

      public static RulesetNode createFromXml(Node node)
    • loadFromXml

      protected void loadFromXml(Node node)
    • matches

      public boolean matches(ForceDescriptor fd)
    • matches

      public boolean matches(ForceDescriptor fd, boolean augmented)
    • matches

      public boolean matches(String val, String property)
    • matchesDate

      public boolean matchesDate(Integer year, String property)
    • collectionMatchesProperty

      public boolean collectionMatchesProperty(Collection<String> list, String property)
      Each csv field of property must be contained in the list for a match.
    • matchesPredicate

      public boolean matchesPredicate(String val, String key)
    • apply

      public void apply(ForceDescriptor fd, int i)
    • getName

      public String getName()
    • setName

      public void setName(String name)