Class AcademyCampusLocation

java.lang.Object
mekhq.campaign.location.AcademyCampusLocation
All Implemented Interfaces:
ILocation, IPlace

public class AcademyCampusLocation extends Object implements IPlace
Represents a specific academy campus as an ILocation.

Each AcademyCampusLocation is a lightweight node in the location tree, serving as a child of a FixedLocation at the same planetary system. Personnel enrolled at the campus can be attached as children of this node.

  • Constructor Details

    • AcademyCampusLocation

      public AcademyCampusLocation(String academySet, String academyName)
  • Method Details

    • getAcademySet

      public String getAcademySet()
    • getAcademyName

      public String getAcademyName()
    • getAcademy

      @Nullable public Academy getAcademy()
    • getLocationNode

      @Nonnull public LocationNode getLocationNode()
      Specified by:
      getLocationNode in interface ILocation
    • getPersonnel

      public Personnel getPersonnel()
      Description copied from interface: IPlace
      Returns the personnel roster owned by this place, or null if this place does not own one.

      Overrides ILocation.getPersonnel() to stop the upward tree traversal.

      Specified by:
      getPersonnel in interface ILocation
      Specified by:
      getPersonnel in interface IPlace
    • writeToXML

      public void writeToXML(PrintWriter pw, int indent)
    • drainPendingPersonIds

      public List<UUID> drainPendingPersonIds()
      Returns and clears the person UUIDs read from XML, for use during post-load reconnection.
    • generateInstanceFromXML

      @Nullable public static AcademyCampusLocation generateInstanceFromXML(Node wn)