megamek.common
Class TechConstants
java.lang.Object
megamek.common.TechConstants
public class TechConstants
- extends java.lang.Object
Contains some constants representing equipment/unit tech levels
- Version:
- Author:
- Ben
|
Method Summary |
static java.lang.String |
getLevelDisplayableName(int level)
|
static java.lang.String |
getLevelName(int level)
|
static java.lang.String |
getTechName(int level)
|
static boolean |
isLegal(int entityTechlevel,
int equipmentTechlevel)
|
static boolean |
isLegal(int entityTechlevel,
int equipmentTechlevel,
boolean ignoreUnknown)
Returns true if the equipment is legal for a unit with the paired tech
levels; Returns false if it is not. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
T_ALLOWED_ALL
public static final int T_ALLOWED_ALL
- See Also:
- Constant Field Values
T_TECH_UNKNOWN
public static final int T_TECH_UNKNOWN
- See Also:
- Constant Field Values
T_INTRO_BOXSET
public static final int T_INTRO_BOXSET
- See Also:
- Constant Field Values
T_IS_TW_NON_BOX
public static final int T_IS_TW_NON_BOX
- See Also:
- Constant Field Values
T_CLAN_TW
public static final int T_CLAN_TW
- See Also:
- Constant Field Values
T_IS_TW_ALL
public static final int T_IS_TW_ALL
- See Also:
- Constant Field Values
T_TW_ALL
public static final int T_TW_ALL
- See Also:
- Constant Field Values
T_IS_ADVANCED
public static final int T_IS_ADVANCED
- See Also:
- Constant Field Values
T_CLAN_ADVANCED
public static final int T_CLAN_ADVANCED
- See Also:
- Constant Field Values
T_IS_EXPERIMENTAL
public static final int T_IS_EXPERIMENTAL
- See Also:
- Constant Field Values
T_CLAN_EXPERIMENTAL
public static final int T_CLAN_EXPERIMENTAL
- See Also:
- Constant Field Values
T_IS_UNOFFICIAL
public static final int T_IS_UNOFFICIAL
- See Also:
- Constant Field Values
T_CLAN_UNOFFICIAL
public static final int T_CLAN_UNOFFICIAL
- See Also:
- Constant Field Values
T_ALL
public static final int T_ALL
- See Also:
- Constant Field Values
SIZE_LEVEL_2
public static final int SIZE_LEVEL_2
- See Also:
- Constant Field Values
T_NAMES
public static final java.lang.String[] T_NAMES
SIZE
public static final int SIZE
T_SIMPLE_LEVEL
public static final java.lang.String[] T_SIMPLE_LEVEL
TechConstants
public TechConstants()
getLevelName
public static java.lang.String getLevelName(int level)
getLevelDisplayableName
public static java.lang.String getLevelDisplayableName(int level)
isLegal
public static boolean isLegal(int entityTechlevel,
int equipmentTechlevel)
isLegal
public static boolean isLegal(int entityTechlevel,
int equipmentTechlevel,
boolean ignoreUnknown)
- Returns true if the equipment is legal for a unit with the paired tech
levels; Returns false if it is not.
getTechName
public static java.lang.String getTechName(int level)