Package megamek.client.bot.princess
Record Class Princess.HeatMapMarker
java.lang.Object
java.lang.Record
megamek.client.bot.princess.Princess.HeatMapMarker
- Record Components:
turn- The value to show on the hex: the prediction round, or a shot's turns-til-impact countdownheatUnits- The number of enemies contributing to this hex's heat
- Enclosing class:
Princess
A bot artillery heat-map marker. For a predicted enemy position the value is the round of the prediction; for a
shot it is the countdown of turns until the round lands (0 = lands this turn). The heat is the number of enemies
feeding the hex, which drives a predicted hex's cold-to-hot color.
-
Constructor Summary
ConstructorsConstructorDescriptionHeatMapMarker(int turn, int heatUnits) Creates an instance of aHeatMapMarkerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theheatUnitsrecord component.final StringtoString()Returns a string representation of this record class.intturn()Returns the value of theturnrecord component.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
turn
public int turn()Returns the value of theturnrecord component.- Returns:
- the value of the
turnrecord component
-
heatUnits
public int heatUnits()Returns the value of theheatUnitsrecord component.- Returns:
- the value of the
heatUnitsrecord component
-