Difference between revisions of "Constants"
Jump to navigation
Jump to search
(11 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
− | + | ;Player Status | |
+ | :(defined in mekwars.server.campaign.SPlayer) | ||
+ | :STATUS_LOGGEDOUT: 1 | ||
+ | :STATUS_RESERVE: 2 | ||
+ | :STATUS_ACTIVE: 3 | ||
+ | :STATUS_FIGHTING: 4 | ||
− | |||
− | + | ;Tech Level | |
+ | :(defined in megamek.common.TechConstants) | ||
+ | :All: -2 | ||
+ | :Unknown: -1 | ||
+ | :Intro Box Set: 0 | ||
+ | :IS TW Non-Box: 1 | ||
+ | :Clan TW: 2 | ||
+ | :IS TW All: 3 | ||
+ | :TW All: 4 | ||
+ | :IS Advanced: 5 | ||
+ | :Clan Advanced: 6 | ||
+ | :IS Experimental: 7 | ||
+ | :Clan Experimental: 8 | ||
+ | :IS Unofficial: 9 | ||
+ | :Clan Unofficial: 10 | ||
+ | :All IS: 11 | ||
+ | :All Clan: 12 | ||
+ | :All: 13 | ||
+ | : (yes, I am aware there are 2 "alls." I do not know why.) | ||
− | |||
− | Infantry: 3 | + | ;Unit Types (MegaMek) |
− | Protomek: 4 | + | :(defined in megamek.common.UnitType) |
− | VTOL: 5 | + | :Mek: 0 |
− | Naval: 6 | + | :Vehicle: 1 |
− | Gun Emplacement: 7 | + | :Battle Armor: 2 |
− | Conventional Fighter: 8 | + | :Infantry: 3 |
− | Aero: 9 | + | :Protomek: 4 |
− | Small Craft: 10 | + | :VTOL: 5 |
− | Dropship: 11 | + | :Naval: 6 |
− | Jumpship: 12 | + | :Gun Emplacement: 7 |
− | Warship: 13 | + | :Conventional Fighter: 8 |
− | Space Station: 14 | + | :Aero: 9 |
+ | :Small Craft: 10 | ||
+ | :Dropship: 11 | ||
+ | :Jumpship: 12 | ||
+ | :Warship: 13 | ||
+ | :Space Station: 14 | ||
− | + | ;Unit Types (MekWars) | |
− | ''Please note, | + | :(defined in mekwars.common.Unit) |
− | Mek: 0 | + | :''Please note that, since these conflict with the MegaMek constants, I will probably make a move to drop these'' |
− | Vehicle: 1 | + | :Mek: 0 |
− | Infantry: 2 | + | :Vehicle: 1 |
− | Protomek: 3 | + | :Infantry: 2 |
− | Battle Armor: 4 | + | :Protomek: 3 |
− | Aero: 5 | + | :Battle Armor: 4 |
− | Quad: 6 | + | :Aero: 5 |
− | MekWarrior: 7 | + | :Quad: 6 |
+ | :MekWarrior: 7 | ||
− | + | ;Unit Status | |
− | Light: 0 | + | :(defined in mekwars.common.Unit) |
− | Medium: 1 | + | :STATUS_OK: 1 |
− | Heavy: 2 | + | :STATUS_UNMAINTAINED: 2 |
− | Assault: 3 | + | :STATUS_FORSALE: 3 |
+ | |||
+ | |||
+ | ;Unit Weights | ||
+ | :(defined in mekwars.common.Unit) | ||
+ | :Light: 0 | ||
+ | :Medium: 1 | ||
+ | :Heavy: 2 | ||
+ | :Assault: 3 |
Latest revision as of 09:21, 23 February 2017
MekWars and MegaMek have some constants that are used a lot both in the code and in the CLI.
- Player Status
- (defined in mekwars.server.campaign.SPlayer)
- STATUS_LOGGEDOUT: 1
- STATUS_RESERVE: 2
- STATUS_ACTIVE: 3
- STATUS_FIGHTING: 4
- Tech Level
- (defined in megamek.common.TechConstants)
- All: -2
- Unknown: -1
- Intro Box Set: 0
- IS TW Non-Box: 1
- Clan TW: 2
- IS TW All: 3
- TW All: 4
- IS Advanced: 5
- Clan Advanced: 6
- IS Experimental: 7
- Clan Experimental: 8
- IS Unofficial: 9
- Clan Unofficial: 10
- All IS: 11
- All Clan: 12
- All: 13
- (yes, I am aware there are 2 "alls." I do not know why.)
- Unit Types (MegaMek)
- (defined in megamek.common.UnitType)
- Mek: 0
- Vehicle: 1
- Battle Armor: 2
- Infantry: 3
- Protomek: 4
- VTOL: 5
- Naval: 6
- Gun Emplacement: 7
- Conventional Fighter: 8
- Aero: 9
- Small Craft: 10
- Dropship: 11
- Jumpship: 12
- Warship: 13
- Space Station: 14
- Unit Types (MekWars)
- (defined in mekwars.common.Unit)
- Please note that, since these conflict with the MegaMek constants, I will probably make a move to drop these
- Mek: 0
- Vehicle: 1
- Infantry: 2
- Protomek: 3
- Battle Armor: 4
- Aero: 5
- Quad: 6
- MekWarrior: 7
- Unit Status
- (defined in mekwars.common.Unit)
- STATUS_OK: 1
- STATUS_UNMAINTAINED: 2
- STATUS_FORSALE: 3
- Unit Weights
- (defined in mekwars.common.Unit)
- Light: 0
- Medium: 1
- Heavy: 2
- Assault: 3