Package megamek.common.units
Class DemolitionCharge
java.lang.Object
megamek.common.units.DemolitionCharge
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
damage
public int damage -
playerId
public int playerId -
pos
The absolute boardCoordsof the building hex this charge is placed in. This must always be board coordinates (not building-relative coordinates): the touch-off menu compares it against the clicked board hex, and the end-phase detonation uses it to look up the building and apply damage. -
uuid
A UUID to keep track of to identify of this demolition charge. Since we could have multiple charges in the same building hex, we can't track identity based upon owner and damage. Additionally, since we pass objects across the network, we need a mechanism to track identify other than memory address.
-
-
Constructor Details
-
DemolitionCharge
-
-
Method Details