Package mekhq.campaign
Class Kill
java.lang.Object
mekhq.campaign.Kill
A kill record
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()static KillgenerateInstanceFromXML(Node wn, megamek.Version version) Returns a unique identifier for the award based on the combination of various factors.getDate()intintintlongvoidvoidsetForceId(int id) voidvoidsetMissionId(int id) voidsetPilotId(UUID id) voidsetScenarioId(int id) voidsetUnitType(long type) voidvoidwriteToXML(PrintWriter pw, int indent)
-
Constructor Details
-
Kill
public Kill() -
Kill
-
-
Method Details
-
getPilotId
-
setPilotId
-
getDate
-
setDate
-
getWhatKilled
-
setWhatKilled
-
getKilledByWhat
-
setKilledByWhat
-
getMissionId
public int getMissionId() -
setMissionId
public void setMissionId(int id) -
getScenarioId
public int getScenarioId() -
setScenarioId
public void setScenarioId(int id) -
getForceId
public int getForceId() -
setForceId
public void setForceId(int id) -
getAwardIdentifier
Returns a unique identifier for the award based on the combination of various factors.This is used by autoAwards to identify duplicate kills across multi-crewed units.
- Returns:
- The string representation of the award identifier combining
killed,missionId,scenarioId,forceId, andunitType
-
getUnitType
public long getUnitType()- Returns:
- the long corresponding to the Entity type killed, or -1 if the kill does not have a unit type logged
-
setUnitType
public void setUnitType(long type) -
generateInstanceFromXML
-
writeToXML
-
clone
-