| 1 |
/* |
| 2 |
* Portions of this file are copyright Rebirth contributors and licensed as |
| 3 |
* described in COPYING.txt. |
| 4 |
* Portions of this file are copyright Parallax Software and licensed |
| 5 |
* according to the Parallax license. |
| 6 |
* See COPYING.txt for license details. |
| 7 |
*/ |
| 8 |
|
| 9 |
#pragma once |
| 10 |
|
| 11 |
#include <cstdint> |
| 12 |
#include "dsx-ns.h" |
| 13 |
|
| 14 |
#ifdef DXX_BUILD_DESCENT |
| 15 |
namespace dsx { |
| 16 |
|
| 17 |
enum weapon_id_type : uint8_t |
| 18 |
{ |
| 19 |
LASER_ID_L1, |
| 20 |
LASER_ID = LASER_ID_L1, //0..3 are lasers |
| 21 |
LASER_ID_L2, |
| 22 |
LASER_ID_L3, |
| 23 |
LASER_ID_L4, |
| 24 |
CLS1_DRONE_FIRE = 5, |
| 25 |
CONTROLCEN_WEAPON_NUM = 6, |
| 26 |
CONCUSSION_ID = 8, |
| 27 |
FLARE_ID = 9, // NOTE: This MUST correspond to the ID generated at bitmaps.tbl read time. |
| 28 |
CLS2_DRONE_LASER = 10, |
| 29 |
VULCAN_ID = 11, // NOTE: This MUST correspond to the ID generated at bitmaps.tbl read time. |
| 30 |
#if DXX_BUILD_DESCENT == 1 |
| 31 |
/* Descent shipped with two spreadfire weapons. One cost 0.5 energy |
| 32 |
* to fire; the other cost 1.0 energy to fire. The two have |
| 33 |
* differing flight speeds. For reasons unknown, the original code |
| 34 |
* used the cost of one spreadfire weapon, but used the other weapon |
| 35 |
* for all other purposes. CHEAP_SPREADFIRE_ID represents the lower |
| 36 |
* cost weapon, so that it can be named in |
| 37 |
* Primary_weapon_to_weapon_info. SPREADFIRE_ID represents the |
| 38 |
* weapon used for all other purposes. |
| 39 |
*/ |
| 40 |
CHEAP_SPREADFIRE_ID, |
| 41 |
#elif DXX_BUILD_DESCENT == 2 |
| 42 |
SPREADFIRE_ID = 12, // NOTE: This MUST correspond to the ID generated at bitmaps.tbl read time. |
| 43 |
#endif |
| 44 |
PLASMA_ID = 13, // NOTE: This MUST correspond to the ID generated at bitmaps.tbl read time. |
| 45 |
FUSION_ID = 14, // NOTE: This MUST correspond to the ID generated at bitmaps.tbl read time. |
| 46 |
HOMING_ID = 15, |
| 47 |
PROXIMITY_ID = 16, |
| 48 |
SMART_ID = 17, |
| 49 |
MEGA_ID = 18, |
| 50 |
|
| 51 |
PLAYER_SMART_HOMING_ID = 19, |
| 52 |
#if DXX_BUILD_DESCENT == 1 |
| 53 |
SPREADFIRE_ID = 20, |
| 54 |
#endif |
| 55 |
SUPER_MECH_MISS = 21, |
| 56 |
REGULAR_MECH_MISS = 22, |
| 57 |
SILENT_SPREADFIRE_ID = 23, |
| 58 |
MEDIUM_LIFTER_LASER = 24, |
| 59 |
SMALL_HULK_FIRE = 25, |
| 60 |
HEAVY_DRILLER_PLASMA = 26, |
| 61 |
SPIDER_ROBOT_FIRE = 27, |
| 62 |
ROBOT_MEGA_ID = 28, |
| 63 |
ROBOT_SMART_HOMING_ID = 29, |
| 64 |
#if DXX_BUILD_DESCENT == 2 |
| 65 |
SUPER_LASER_ID = 30, // 30,31 are super lasers (level 5,6) |
| 66 |
LASER_ID_L5 = SUPER_LASER_ID, |
| 67 |
LASER_ID_L6, |
| 68 |
|
| 69 |
GAUSS_ID = 32, // NOTE: This MUST correspond to the ID generated at bitmaps.tbl read time. |
| 70 |
HELIX_ID = 33, // NOTE: This MUST correspond to the ID generated at bitmaps.tbl read time. |
| 71 |
PHOENIX_ID = 34, // NOTE: This MUST correspond to the ID generated at bitmaps.tbl read time. |
| 72 |
OMEGA_ID = 35, // NOTE: This MUST correspond to the ID generated at bitmaps.tbl read time. |
| 73 |
|
| 74 |
FLASH_ID = 36, |
| 75 |
GUIDEDMISS_ID = 37, |
| 76 |
SUPERPROX_ID = 38, |
| 77 |
MERCURY_ID = 39, |
| 78 |
EARTHSHAKER_ID = 40, |
| 79 |
SMELTER_PHOENIX_ID = 44, |
| 80 |
|
| 81 |
SMART_MINE_HOMING_ID = 47, |
| 82 |
BPER_PHASE_ENERGY_ID = 48, |
| 83 |
ROBOT_SMART_MINE_HOMING_ID = 49, |
| 84 |
ROBOT_SUPERPROX_ID = 53, |
| 85 |
EARTHSHAKER_MEGA_ID = 54, |
| 86 |
ROBOT_EARTHSHAKER_ID = 58, |
| 87 |
ROBOT_EARTHSHAKER_SUBMUNITION_ID = 59, |
| 88 |
|
| 89 |
PMINE_ID = 51, //the mine that the designers can place |
| 90 |
|
| 91 |
ROBOT_26_WEAPON_46_ID = 46, |
| 92 |
ROBOT_27_WEAPON_52_ID = 52, |
| 93 |
ROBOT_28_WEAPON_42_ID = 42, |
| 94 |
ROBOT_29_WEAPON_20_ID = 20, |
| 95 |
ROBOT_30_WEAPON_48_ID = 48, |
| 96 |
ROBOT_36_WEAPON_41_ID = 41, |
| 97 |
ROBOT_37_WEAPON_41_ID = 41, |
| 98 |
ROBOT_38_WEAPON_42_ID = 42, |
| 99 |
ROBOT_39_WEAPON_43_ID = 43, |
| 100 |
ROBOT_43_WEAPON_55_ID = 55, |
| 101 |
ROBOT_45_WEAPON_45_ID = 45, |
| 102 |
ROBOT_46_WEAPON_55_ID = 55, |
| 103 |
ROBOT_47_WEAPON_26_ID = 26, |
| 104 |
ROBOT_50_WEAPON_50_ID = 50, |
| 105 |
ROBOT_52_WEAPON_52_ID = 52, |
| 106 |
ROBOT_53_WEAPON_45_ID = 45, |
| 107 |
ROBOT_55_WEAPON_44_ID = 44, |
| 108 |
ROBOT_57_WEAPON_44_ID = 44, |
| 109 |
ROBOT_59_WEAPON_48_ID = 48, |
| 110 |
ROBOT_62_WEAPON_60_ID = 60, |
| 111 |
ROBOT_47_WEAPON_57_ID = 57, |
| 112 |
ROBOT_62_WEAPON_61_ID = 61, |
| 113 |
ROBOT_71_WEAPON_62_ID = 62, // M.A.X. homing flash missile |
| 114 |
ROBOT_70_WEAPON_64_ID = 64, // Vertigo smelter Phoenix |
| 115 |
#endif |
| 116 |
unspecified = 0xff, |
| 117 |
}; |
| 118 |
|
| 119 |
} |
| 120 |
#endif |