Class DemolitionCharge

java.lang.Object
megamek.common.units.DemolitionCharge
All Implemented Interfaces:
Serializable

public class DemolitionCharge extends Object implements Serializable
See Also:
  • Field Details

    • damage

      public int damage
    • playerId

      public int playerId
    • pos

      public Coords pos
      The absolute board Coords of 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

      public UUID 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

      public DemolitionCharge(int playerId, int damage, Coords p)
  • Method Details