Package megamek.client.bot.princess
Enum Class ArtilleryCommandAndControl.SpecialAmmo
java.lang.Object
java.lang.Enum<ArtilleryCommandAndControl.SpecialAmmo>
megamek.client.bot.princess.ArtilleryCommandAndControl.SpecialAmmo
- All Implemented Interfaces:
Serializable,Comparable<ArtilleryCommandAndControl.SpecialAmmo>,Constable
- Enclosing class:
ArtilleryCommandAndControl
public static enum ArtilleryCommandAndControl.SpecialAmmo
extends Enum<ArtilleryCommandAndControl.SpecialAmmo>
The ammo type a fire mission should use, mapped to the artillery munitions it covers. STANDARD is a plain
high-explosive round; the
utility flag marks zero-damage munitions (smoke, flare, mines and variants)
that the bot only fires when explicitly ordered at a hex.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionforMunitions(Set<AmmoType.Munitions> ammoMunitions) Classifies a loaded ammo bin's munition set into a fire-mission ammo category, or STANDARD when it is a plain high-explosive round not matched by any special category.booleanReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STANDARD
-
SMOKE
-
FLARE
-
MINE
-
LASER_INHIBITING
-
VIBRABOMB
-
FAE
-
CLUSTER
-
INFERNO
-
FLECHETTE
-
ADA
-
DAVY_CROCKETT
-
HOMING
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isUtility
public boolean isUtility()- Returns:
truefor zero-damage utility munitions (smoke, flare, mines and their variants), which the bot only fires when the player explicitly orders them at a hex
-
getMunitions
- Returns:
- The munition types this category covers (empty for STANDARD)
-
forMunitions
public static ArtilleryCommandAndControl.SpecialAmmo forMunitions(Set<AmmoType.Munitions> ammoMunitions) Classifies a loaded ammo bin's munition set into a fire-mission ammo category, or STANDARD when it is a plain high-explosive round not matched by any special category.- Parameters:
ammoMunitions- The bin's munition types- Returns:
- The matching category
-