Package net.mtrop.doom.map.data.flags
Interface MBFThingFlags
- All Superinterfaces:
BoomThingFlags
,DoomThingFlags
Thing flag constants for MBF/SMMU.
The constant value is how many places to bit shift 1 to equal the flag bit.
- Author:
- Matthew Tropiano
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Thing flag: Appears on easy difficulty.static final int
Thing flag: Thing is friendly.static final int
Thing flag: Appears on hard difficulty.static final int
Thing flag: Appears on medium difficulty.Fields inherited from interface net.mtrop.doom.map.data.flags.BoomThingFlags
NOT_COOPERATIVE, NOT_DEATHMATCH
Fields inherited from interface net.mtrop.doom.map.data.flags.DoomThingFlags
AMBUSH, NOT_SINGLEPLAYER
-
Method Summary
Modifier and TypeMethodDescriptiondefault int
value
(int flag) Gets the bit value of the flag (shifted).
-
Field Details
-
FRIENDLY
static final int FRIENDLYThing flag: Thing is friendly.- See Also:
-
EASY
static final int EASYThing flag: Appears on easy difficulty.- See Also:
-
MEDIUM
static final int MEDIUMThing flag: Appears on medium difficulty.- See Also:
-
HARD
static final int HARDThing flag: Appears on hard difficulty.- See Also:
-
-
Method Details
-
value
default int value(int flag) Gets the bit value of the flag (shifted).- Parameters:
flag
- the input flag constant.- Returns:
- the resultant value.
-