ProjectileInfo
Bases: Enum
This enum class provides information about the projectiles in the game. Information about the following properties of a projectile is found in this class:
- Projectile ID
- The units that use the projectile
Methods
Examples
Source code in AoE2ScenarioParser/datasets/projectiles.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 |
|
Attributes¶
ACA = (507, (492, 642, 686, 1182))
class-attribute
instance-attribute
¶
Value:
(507, (492, 642, 686, 1182))
ACA_FIRE = (519, (492, 642, 686, 1182))
class-attribute
instance-attribute
¶
Value:
(519, (492, 642, 686, 1182))
ARAMBAI_FIRE = (1170, (1126, 1128))
class-attribute
instance-attribute
¶
Value:
(1170, (1126, 1128))
ARROW_GUARD_TOWER = (504, (79, 234, 235, 566, 785, 1665))
class-attribute
instance-attribute
¶
Value:
(504, (79, 234, 235, 566, 785, 1665))
BALLISTA_ELEPHANT = (1167, (1120, 1122))
class-attribute
instance-attribute
¶
Value:
(1167, (1120, 1122))
BALLISTA_ELEPHANT_FIRE = (1168, (1120, 1122))
class-attribute
instance-attribute
¶
Value:
(1168, (1120, 1122))
BOMBARD_CANNON = (368, (36, 644, 650, 1709))
class-attribute
instance-attribute
¶
Value:
(368, (36, 644, 650, 1709))
CGX = (767, (831, 832, 844, 1631))
class-attribute
instance-attribute
¶
Value:
(767, (831, 832, 844, 1631))
CKN = (510, (73, 559, 1073, 1231, 1233, 1260))
class-attribute
instance-attribute
¶
Value:
(510, (73, 559, 1073, 1231, 1233, 1260))
CKN_FIRE = (522, (73, 559, 1073, 1231, 1233, 1260))
class-attribute
instance-attribute
¶
Value:
(522, (73, 559, 1073, 1231, 1233, 1260))
COM_FIRE = (375, (24, 493, 866, 868, 926, 930, 1072, 1106, 1166, 1294, 1297))
class-attribute
instance-attribute
¶
Value:
(375, (24, 493, 866, 868, 926, 930, 1072, 1106, 1166, 1294, 1297))
CROSSBOWMAN = (364, (24, 493, 866, 868, 926, 930, 1072, 1106, 1166, 1294, 1297))
class-attribute
instance-attribute
¶
Value:
(364, (24, 493, 866, 868, 926, 930, 1072, 1106, 1166, 1294, 1297))
CST = (746, (33, 82, 445, 1251))
class-attribute
instance-attribute
¶
Value:
(746, (33, 82, 445, 1251))
CST_FIRE = (747, (33, 82, 445, 1251))
class-attribute
instance-attribute
¶
Value:
(747, (33, 82, 445, 1251))
FIRE_SHIP = (676, (188, 190, 529, 532, 938, 1103, 1302))
class-attribute
instance-attribute
¶
Value:
(676, (188, 190, 529, 532, 938, 1103, 1302))
GTW_FIRE = (517, (79, 234, 235, 566, 785, 1665))
class-attribute
instance-attribute
¶
Value:
(517, (79, 234, 235, 566, 785, 1665))
GUNPOWDER_PRIMARY = (380, (5, 46, 52, 203, 425, 427, 557, 748, 771, 773, 1068))
class-attribute
instance-attribute
¶
Value:
(380, (5, 46, 52, 203, 425, 427, 557, 748, 771, 773, 1068))
GUNPOWDER_SECONDARY = (1119, (203, 1733))
class-attribute
instance-attribute
¶
Value:
(1119, (203, 1733))
HAR = (477, (11, 39, 172, 561, 577, 731, 1007, 1009, 1034, 1231, 1233, 1259, 1260, 1261, 1269, 1275, 1276))
class-attribute
instance-attribute
¶
Value:
(477, (11, 39, 172, 561, 577, 731, 1007, 1009, 1034, 1231, 1233, 1259, 1260, 1261, 1269, 1275, 1276))
HAR_FIRE = (475, (11, 39, 172, 561, 577, 731, 1007, 1009, 1034, 1231, 1233, 1259, 1260, 1261, 1269, 1275, 1276))
class-attribute
instance-attribute
¶
Value:
(475, (11, 39, 172, 561, 577, 731, 1007, 1009, 1034, 1231, 1233, 1259, 1260, 1261, 1269, 1275, 1276))
HCS = (366, (6, 583, 596, 1010, 1012, 1036, 1079, 1155))
class-attribute
instance-attribute
¶
Value:
(366, (6, 583, 596, 1010, 1012, 1036, 1079, 1155))
HCS_FIRE = (377, (6, 583, 596, 1010, 1012, 1036, 1079, 1155))
class-attribute
instance-attribute
¶
Value:
(377, (6, 583, 596, 1010, 1012, 1036, 1079, 1155))
HHA = (478, (437, 474, 698, 943, 1267, 1303))
class-attribute
instance-attribute
¶
Value:
(478, (437, 474, 698, 943, 1267, 1303))
HHA_FIRE = (476, (437, 474, 698, 943, 1267, 1303))
class-attribute
instance-attribute
¶
Value:
(476, (437, 474, 698, 943, 1267, 1303))
HUSSITE_WAGON = (1733, (1704, 1706))
class-attribute
instance-attribute
¶
Value:
(1733, (1704, 1706))
KEP = (505, (79, 234, 235, 684, 685, 785, 1102, 1665))
class-attribute
instance-attribute
¶
Value:
(505, (79, 234, 235, 684, 685, 785, 1102, 1665))
KEP_FIRE = (518, (79, 234, 235, 684, 685, 785, 1102, 1665))
class-attribute
instance-attribute
¶
Value:
(518, (79, 234, 235, 684, 685, 785, 1102, 1665))
KNIFE = (1055, (1013, 1015, 1066))
class-attribute
instance-attribute
¶
Value:
(1055, (1013, 1015, 1066))
LBM_FIRE = (523, (8, 200, 530, 763, 765, 850, 1069, 1129, 1131))
class-attribute
instance-attribute
¶
Value:
(523, (8, 200, 530, 763, 765, 850, 1069, 1129, 1131))
LBT = (512, (45, 47, 51, 106, 133, 250, 533, 778, 885, 1189))
class-attribute
instance-attribute
¶
Value:
(512, (45, 47, 51, 106, 133, 250, 533, 778, 885, 1189))
LBT_FIRE = (524, (45, 47, 51, 106, 133, 250, 533, 778, 885, 1189))
class-attribute
instance-attribute
¶
Value:
(524, (45, 47, 51, 106, 133, 250, 533, 778, 885, 1189))
LONGBOWMAN = (511, (8, 200, 530, 763, 765, 850, 1069, 1129, 1131))
class-attribute
instance-attribute
¶
Value:
(511, (8, 200, 530, 763, 765, 850, 1069, 1129, 1131))
MANGONEL_PRIMARY = (656, (280, 550, 588))
class-attribute
instance-attribute
¶
Value:
(656, (280, 550, 588))
MANGONEL_PRIMARY_FIRE = (658, (280, 550, 588))
class-attribute
instance-attribute
¶
Value:
(658, (280, 550, 588))
MANGONEL_SECONDARY = (369, (280, 550, 588))
class-attribute
instance-attribute
¶
Value:
(369, (280, 550, 588))
MANGONEL_SECONDARY_FIRE = (468, (280, 550, 588))
class-attribute
instance-attribute
¶
Value:
(468, (280, 550, 588))
MLK = (736, (282, 556, 929, 1296))
class-attribute
instance-attribute
¶
Value:
(736, (282, 556, 929, 1296))
SVT = (1867, (79, 234, 235, 566, 785, 1665, 684, 685, 1102))
class-attribute
instance-attribute
¶
Value:
(1867, (79, 234, 235, 566, 785, 1665, 684, 685, 1102))
SVT_FIRE = (1868, (79, 234, 235, 566, 785, 1665, 684, 685, 1102))
class-attribute
instance-attribute
¶
Value:
(1868, (79, 234, 235, 566, 785, 1665, 684, 685, 1102))
TAX = (515, (165, 281, 424, 426, 531, 931, 1298))
class-attribute
instance-attribute
¶
Value:
(515, (165, 281, 424, 426, 531, 931, 1298))
TREBUCHET = (371, (42, 682, 683, 1690))
class-attribute
instance-attribute
¶
Value:
(371, (42, 682, 683, 1690))
TREBUCHET_FIRE = (469, (42, 682, 683, 1690))
class-attribute
instance-attribute
¶
Value:
(469, (42, 682, 683, 1690))
USED_BY: tuple[int]
property
¶
Type:
tuple[int]
Returns:
Type | Description |
---|---|
tuple[int]
|
A tuple of unit IDs that use the specified projectile unit |
VOL = (54, (71, 109, 141, 142, 484, 597, 617, 621))
class-attribute
instance-attribute
¶
Value:
(54, (71, 109, 141, 142, 484, 597, 617, 621))
VOL_FIRE = (328, (71, 109, 141, 142, 484, 597, 617, 621))
class-attribute
instance-attribute
¶
Value:
(328, (71, 109, 141, 142, 484, 597, 617, 621))
WAR_GALLEY = (373, (442, 827, 829))
class-attribute
instance-attribute
¶
Value:
(373, (442, 827, 829))
WAR_GALLEY_FIRE = (471, (442, 827, 829))
class-attribute
instance-attribute
¶
Value:
(471, (442, 827, 829))
Functions¶
def from_id(...)
classmethod
¶
Get the ProjectileInfo object from its ID
Parameters:
Name | Type | Description | Default |
---|---|---|---|
projectile_id |
int
|
The ID of the projectile to get the ProjectileInfo of |
required |
Returns:
Type | Description |
---|---|
ProjectileInfo
|
A ProjectileInfo object of the specified projectile ID |
Source code in AoE2ScenarioParser/datasets/projectiles.py
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
|
def get_unit_projectile(...)
staticmethod
¶
Get the projectile object based on unit const
Parameters:
Name | Type | Description | Default |
---|---|---|---|
unit_const |
int
|
The unit to find the projectile of |
required |
has_chemistry |
bool
|
If you want the fire (chemistry) version (if it exists) |
False
|
secondary |
bool
|
If you want the secondary projectile version (if it exists) |
False
|
Returns:
Type | Description |
---|---|
ProjectileInfo
|
The ProjectileInfo corresponding to the given unit and params or None if nothing was found |
Source code in AoE2ScenarioParser/datasets/projectiles.py
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
|