-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathBulletType.java
More file actions
67 lines (58 loc) · 1.48 KB
/
BulletType.java
File metadata and controls
67 lines (58 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
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
package bwapi;
import java.util.Arrays;
/**
* This enum represents a type of bullet.
* <p>
* Internally, these are the same IDs as flingy types in Broodwar.
*/
public enum BulletType {
Melee(0),
Fusion_Cutter_Hit(141),
Gauss_Rifle_Hit(142),
C_10_Canister_Rifle_Hit(143),
Gemini_Missiles(144),
Fragmentation_Grenade(145),
Longbolt_Missile(146),
Unused_Lockdown(147),
ATS_ATA_Laser_Battery(148),
Burst_Lasers(149),
Arclite_Shock_Cannon_Hit(150),
EMP_Missile(151),
Dual_Photon_Blasters_Hit(152),
Particle_Beam_Hit(153),
Anti_Matter_Missile(154),
Pulse_Cannon(155),
Psionic_Shockwave_Hit(156),
Psionic_Storm(157),
Yamato_Gun(158),
Phase_Disruptor(159),
STA_STS_Cannon_Overlay(160),
Sunken_Colony_Tentacle(161),
Venom_Unused(162),
Acid_Spore(163),
Plasma_Drip_Unused(164),
Glave_Wurm(165),
Seeker_Spores(166),
Queen_Spell_Carrier(167),
Plague_Cloud(168),
Consume(169),
Ensnare(170),
Needle_Spine_Hit(171),
Invisible(172),
Optical_Flare_Grenade(201),
Halo_Rockets(202),
Subterranean_Spines(203),
Corrosive_Acid_Shot(204),
Corrosive_Acid_Hit(205),
Neutron_Flare(206),
None(209),
Unknown(210);
static final BulletType[] idToEnum = new BulletType[210 + 1];
static {
Arrays.stream(BulletType.values()).forEach(v -> idToEnum[v.id] = v);
}
public final int id;
BulletType(final int id) {
this.id = id;
}
}