Overview | Package | Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mil.navy.nps.disEnumerations.DetonationResultField
This is effectively a C-style enumeration. Java doesn't do enumerations like C, so you have to wrap a class around it. It's a bit more typing, but pretty simple-minded. Note that the variables are declared public. The default for access is package-wide, but these variables might need to be accessed from outside the package. Since all the variables are final, nobody can change anything anyway, so this is no biggie.
To use these enumerations in your Java code, import the package first:
import mil.navy.nps.disEnumerations.*;
You access this via something like DetonationResultField.HEHITLARGE;
the class name, a period, and the class variable name.
Field Summary | |
static short | AIRBURST
(25) |
static short | AIRHIT
(17) |
static short | ARMORPIERCINGHIT
(10) |
static short | BUILDINGHITLARGE
(20) |
static short | BUILDINGHITMEDIUM
(19) |
static short | BUILDINGHITSMALL
(18) |
static short | DETONATION
(5) |
static short | DIRTBLASTLARGE
(13) |
static short | DIRTBLASTMEDIUM
(12) |
static short | DIRTBLASTSMALL
(11) |
static short | ENTITYIMPACT
(1) |
static short | ENTITYPROXIMATEDETONATION
(2) |
static short | ENVIRONMENTOBJECTIMPACT
(22) |
static short | ENVIRONMENTOBJECTPROXIMATEDETONATION
(23) |
static short | GROUNDIMPACT
(3) |
static short | GROUNDPROXIMATEDETONATION
(4) |
static short | HEHITLARGE
(9) |
static short | HEHITMEDIUM
(8) |
static short | HEHITSMALL
(7) |
static short | MINECLEARINGLINECHARGE
(21) |
static short | NONE
(6) |
static short | OTHER
(0) |
static short | WATERBLASTLARGE
(16) |
static short | WATERBLASTMEDIUM
(15) |
static short | WATERBLASTSMALL
(14) |
static short | WATERIMPACT
(24) |
Method Summary | |
java.lang.String | toString(int idNumber)
|
Methods inherited from class java.lang.Object | |
Field Detail |
public static final short OTHER
public static final short ENTITYIMPACT
public static final short ARMORPIERCINGHIT
public static final short DIRTBLASTSMALL
public static final short DIRTBLASTMEDIUM
public static final short DIRTBLASTLARGE
public static final short WATERBLASTSMALL
public static final short WATERBLASTMEDIUM
public static final short WATERBLASTLARGE
public static final short AIRHIT
public static final short BUILDINGHITSMALL
public static final short BUILDINGHITMEDIUM
public static final short ENTITYPROXIMATEDETONATION
public static final short BUILDINGHITLARGE
public static final short MINECLEARINGLINECHARGE
public static final short ENVIRONMENTOBJECTIMPACT
public static final short ENVIRONMENTOBJECTPROXIMATEDETONATION
public static final short WATERIMPACT
public static final short AIRBURST
public static final short GROUNDIMPACT
public static final short GROUNDPROXIMATEDETONATION
public static final short DETONATION
public static final short NONE
public static final short HEHITSMALL
public static final short HEHITMEDIUM
public static final short HEHITLARGE
Method Detail |
public java.lang.String toString(int idNumber)
Overview | Package | Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |