Package mekhq.campaign
Class Kill
java.lang.Object
mekhq.campaign.Kill
A kill record
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
static Kill
generateInstanceFromXML
(Node wn, megamek.Version version) Returns a unique identifier for the award based on the combination of various factors.getDate()
int
int
int
long
void
void
setForceId
(int id) void
void
setMissionId
(int id) void
setPilotId
(UUID id) void
setScenarioId
(int id) void
setUnitType
(long type) void
void
writeToXML
(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
-