Package megamek.common.alphaStrike
Enum Class BattleForceSUA
- All Implemented Interfaces:
Serializable
,Comparable<BattleForceSUA>
,Constable
This enum contains AlphaStrike, BattleForce and (some - WIP) Strategic BattleForce Special Unit Abilities
(SUAs) and some utility methods for them.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptiongetDoor()
boolean
isAnyOf
(BattleForceSUA sua, BattleForceSUA... furtherSuas) Returns true if this SUA is equal to any of the given SUAs.boolean
boolean
boolean
isDoor()
boolean
boolean
isValidAbilityObject
(Object abilityObject) static Map<BattleForceSUA,
Object> parseAlphaStrikeFull
(String special) Tries to parse the given text for a single SUA (not a list) with its additional information, e.g.toString()
boolean
boolean
boolean
boolean
boolean
boolean
static BattleForceSUA
Returns the enum constant of this class with the specified name.static BattleForceSUA[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
-
PRB
-
AC
-
AFC
-
AT
-
ATxD
-
AMP
-
AECM
-
AM
-
AMS
-
ARTAIS
-
ARTAC
-
ARTBA
-
ARTCM5
-
ARTCM7
-
ARTCM9
-
ARTCM12
-
ARTT
-
ARTS
-
ARTLT
-
ARTTC
-
ARTSC
-
ARTLTC
-
ARM
-
ARS
-
ATMO
-
BAR
-
BFC
-
BHJ
-
SHLD
-
BH
-
BOMB
-
BT
-
BRID
-
C3BSS
-
C3BSM
-
C3EM
-
C3M
-
C3RS
-
C3S
-
C3I
-
CAR
-
CK
-
CKxD
-
CT
-
CTxD
-
CASE
-
CASEII
-
D
-
DRO
-
DCC
-
DT
-
ES
-
ECM
-
ENE
-
ENG
-
FLK
-
SEAL
-
XMEC
-
FR
-
FD
-
HT
-
HELI
-
HPG
-
IATM
-
INARC
-
IF
-
ITSM
-
IT
-
KF
-
LG
-
LEAD
-
LPRB
-
LECM
-
LRM
-
LTAG
-
LF
-
MAG
-
MT
-
MTxD
-
MEC
-
MEL
-
MAS
-
LMAS
-
MDS
-
MSW
-
MASH
-
MFB
-
MHQ
-
SNARC
-
CNARC
-
NC3
-
ORO
-
OMNI
-
PNT
-
PT
-
PTxD
-
RAIL
-
RCN
-
REAR
-
REL
-
RSD
-
SAW
-
SCR
-
SRCH
-
SRM
-
ST
-
STxD
-
SDS
-
SOA
-
SPC
-
STL
-
SLG
-
TAG
-
MTAS
-
BTAS
-
TELE
-
TSM
-
TUR
-
TOR
-
UMU
-
VRT
-
VTM
-
VTMxD
-
VTH
-
VTHxD
-
VTS
-
VTSxD
-
VLG
-
VSTOL
-
WAT
-
ABA
-
BRA
-
BHJ2
-
BHJ3
-
BIM
-
DN
-
GLD
-
IRA
-
LAM
-
MCS
-
UCS
-
NOVA
-
CASEP
-
QV
-
RHS
-
RAMS
-
ECS
-
DJ
-
HJ
-
RBT
-
JAM
-
TSEMP
-
TSEMPO
-
TSI
-
VR
-
ATAC
-
DB
-
PL
-
TCP
-
SDCS
-
CRW
-
CR
-
DUN
-
EE
-
FC
-
FF
-
MTN
-
OVL
-
PAR
-
TSMX
-
RCA
-
RFA
-
HTC
-
TRN
-
SUBS
-
SUBW
-
JMPS
-
JMPW
-
CAP
-
SCAP
-
FUEL
-
MSL
-
AC3
-
COM
-
SBF_OMNI
-
STD
-
TRI
-
QUAD
-
AERODYNESC
-
-
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
-
isTransport
public boolean isTransport()- Returns:
- True when this SUA is an ability that may be associated with a Door value (not IT and DT!).
-
isDoor
public boolean isDoor()- Returns:
- True when this SUA is a door ability for a transport ability.
-
getDoor
- Returns:
- The Door SUA associated with this SUA. Returns UNKNOWN when this SUA is not a transport SUA.
-
isArtillery
public boolean isArtillery()- Returns:
- True when this SUA is an artillery SUA such as ARTAIS, including artillery cannon SUAs.
-
isArtilleryCannon
public boolean isArtilleryCannon()- Returns:
- True when this SUA is an artillery cannon SUA such as ARTSC for the Sniper Cannon.
-
toString
- Overrides:
toString
in classEnum<BattleForceSUA>
-
isAnyOf
Returns true if this SUA is equal to any of the given SUAs. -
usesIntegerObject
public boolean usesIntegerObject()- Returns:
- True when this SUA uses an Integer as its value.
-
usesDoubleOrIntegerObject
public boolean usesDoubleOrIntegerObject()- Returns:
- True when this SUA uses an Integer or Double value (the transport SUAs).
-
usesASDamageObject
public boolean usesASDamageObject()- Returns:
- True when this SUA uses an ASDamage as its value (only IF).
-
usesASDamageVectorObject
public boolean usesASDamageVectorObject()- Returns:
- True when this SUA uses an ASDamageVector as its value, e.g. FLK.
-
usesMapObject
public boolean usesMapObject()- Returns:
- True when this SUA uses a Map as its value (LAM and BIM).
-
usesNoObject
public boolean usesNoObject()- Returns:
- True when this SUA is not accompanied by a value, e.g. TAG.
-
isValidAbilityObject
- Returns:
- True when the given abilityObject is a valid value for this SUA. E.g. an ASDamageVector is valid for LRM.
-
parseAlphaStrikeFull
Tries to parse the given text for a single SUA (not a list) with its additional information, e.g. "ECM", "SRM2/2", "ARTAIS-2" or "AT34D2". Returns a map of found SUAs linking to their value, if any, such as 2/2, 0* or 3.158. Typically the map will contain exactly one SUA. In some cases, e.g. transport SUAs, the map may have two SUAs, namely the transport (AT) and the door count (ATxD). If the SUA cannot be parsed entirely, the returned map is empty.- Parameters:
special
- The text for a single SUA as formatted on the card- Returns:
- The SUA(s) and their value, if any; an empty map when an error occurs during parsing
-