megamek.common
Class TechConstants

java.lang.Object
  extended by megamek.common.TechConstants

public class TechConstants
extends java.lang.Object

Contains some constants representing equipment/unit tech levels

Version:
Author:
Ben

Field Summary
static int SIZE
           
static int SIZE_LEVEL_2
           
static int T_ALL
           
static int T_ALLOWED_ALL
           
static int T_CLAN_ADVANCED
           
static int T_CLAN_EXPERIMENTAL
           
static int T_CLAN_TW
           
static int T_CLAN_UNOFFICIAL
           
static int T_INTRO_BOXSET
           
static int T_IS_ADVANCED
           
static int T_IS_EXPERIMENTAL
           
static int T_IS_TW_ALL
           
static int T_IS_TW_NON_BOX
           
static int T_IS_UNOFFICIAL
           
static java.lang.String[] T_NAMES
           
static java.lang.String[] T_SIMPLE_LEVEL
           
static int T_TECH_UNKNOWN
           
static int T_TW_ALL
           
 
Constructor Summary
TechConstants()
           
 
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
 

Field Detail

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
Constructor Detail

TechConstants

public TechConstants()
Method Detail

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)