Package mekhq.campaign.location
Class AcademyCampusLocation
java.lang.Object
mekhq.campaign.location.AcademyCampusLocation
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface mekhq.campaign.location.ILocation
ILocation.ReferenceResolver -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDiscriminator for a campus anchored to a fixed planetary system, as a serializedILocationreference.static final StringDiscriminator for a local (home-school or unit-education) campus that travels with its parent, as a serializedILocationreference.Fields inherited from interface mekhq.campaign.location.ILocation
LOCATION_REFERENCE_TYPE_TAG, NO_JUMP_PATH, NO_LOCATION, NO_PLANET, NO_PLANETARY_SYSTEM, REFERENCE_RESOLVERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsPendingPersonId(UUID personId) Returns true ifpersonIdis in the pending reconnection list (non-destructive).Returns and clears the person UUIDs read from XML, for use during post-load reconnection.static AcademyCampusLocationReturns the personnel roster owned by this place, ornullif this place does not own one.The discriminator identifying this location's kind within a serialized reference, ornullif this type cannot be referenced.static ILocationresolveCampusReference(Campaign campaign, Node node) Resolves a"campus"reference (academy anchored to a fixed planetary system).static ILocationresolveLocalCampusReference(Campaign campaign, Node node) Resolves a"localCampus"reference (home-school or unit-education campus under the campaign).voidwriteReferenceIdentity(PrintWriter pw, int indent) Writes the identity tags (ids/names) thatILocation.resolveReferenceFromXML(mekhq.campaign.Campaign, org.w3c.dom.Node)needs to resolve a reference of this kind.voidwriteToXML(PrintWriter pw, int indent) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface mekhq.campaign.location.ILocation
canSetChild, canSetParent, fetchPartsAtLocation, fetchPersonnelAtLocation, fetchUnitsAtLocation, getChildLocations, getCurrentLocation, getCurrentSystem, getJumpPath, getParentLocation, getPercentageTransit, getPlace, getPlanet, getTransitTime, hasLocation, hasLocationNode, isAtJumpPoint, isInTransit, isJumpZenith, isOnPlanet, isParented, setChild, setJumpPath, setParent, writeReferenceToXMLMethods inherited from interface mekhq.campaign.location.IPlace
getHangar, getPartInventory, getRequestedStockLevels, getWarehouse, onArrival, processArrivals
-
Field Details
-
CAMPUS_REFERENCE_TYPE
Discriminator for a campus anchored to a fixed planetary system, as a serializedILocationreference.- See Also:
-
LOCAL_CAMPUS_REFERENCE_TYPE
Discriminator for a local (home-school or unit-education) campus that travels with its parent, as a serializedILocationreference.- See Also:
-
-
Constructor Details
-
AcademyCampusLocation
-
-
Method Details
-
getAcademySet
-
getAcademyName
-
getAcademy
-
getLocationNode
- Specified by:
getLocationNodein interfaceILocation
-
getPersonnel
Description copied from interface:IPlaceReturns the personnel roster owned by this place, ornullif this place does not own one.Overrides
ILocation.getPersonnel()to stop the upward tree traversal.- Specified by:
getPersonnelin interfaceILocation- Specified by:
getPersonnelin interfaceIPlace
-
writeToXML
-
locationReferenceType
Description copied from interface:ILocationThe discriminator identifying this location's kind within a serialized reference, ornullif this type cannot be referenced. Concrete referable types return their ownLOCATION_REFERENCE_TYPEconstant.- Specified by:
locationReferenceTypein interfaceILocation
-
writeReferenceIdentity
Description copied from interface:ILocationWrites the identity tags (ids/names) thatILocation.resolveReferenceFromXML(mekhq.campaign.Campaign, org.w3c.dom.Node)needs to resolve a reference of this kind. The default writes nothing; referable types with identity beyond their discriminator override this.- Specified by:
writeReferenceIdentityin interfaceILocation
-
resolveCampusReference
Resolves a"campus"reference (academy anchored to a fixed planetary system). -
resolveLocalCampusReference
Resolves a"localCampus"reference (home-school or unit-education campus under the campaign). -
containsPendingPersonId
Returns true ifpersonIdis in the pending reconnection list (non-destructive). -
drainPendingPersonIds
Returns and clears the person UUIDs read from XML, for use during post-load reconnection. -
generateInstanceFromXML
-