palpic2png.c: improve, make usable with ppic binary files
[rofl0r-openDOW.git] / anim.h
blobfbd8938047a8c7e739e2cfbee54dc1dacab72882
1 #ifndef ANIM_H
2 #define ANIM_H
4 #include <stdint.h>
6 typedef struct anim {
7 uint16_t first;
8 uint16_t last;
9 } anim;
11 enum __attribute__ ((__packed__)) animation_id {
12 ANIM_P1_MOVE_N = 0,
13 ANIM_P1_MOVE_NW,
14 ANIM_P1_MOVE_W,
15 ANIM_P1_MOVE_SW,
16 ANIM_P1_MOVE_S,
17 ANIM_P1_MOVE_SO,
18 ANIM_P1_MOVE_O,
19 ANIM_P1_MOVE_NO,
20 ANIM_P1_DIE,
21 ANIM_P1_THROW_N,
22 ANIM_P1_THROW_NW,
23 ANIM_P1_THROW_W,
24 ANIM_P1_THROW_SW,
25 ANIM_P1_THROW_S,
26 ANIM_P1_THROW_SO,
27 ANIM_P1_THROW_O,
28 ANIM_P1_THROW_NO,
29 ANIM_P2_MOVE_N,
30 ANIM_P2_MOVE_NW,
31 ANIM_P2_MOVE_W,
32 ANIM_P2_MOVE_SW,
33 ANIM_P2_MOVE_S,
34 ANIM_P2_MOVE_SO,
35 ANIM_P2_MOVE_O,
36 ANIM_P2_MOVE_NO,
37 ANIM_P2_DIE,
38 ANIM_P2_THROW_N,
39 ANIM_P2_THROW_NW,
40 ANIM_P2_THROW_W,
41 ANIM_P2_THROW_SW,
42 ANIM_P2_THROW_S,
43 ANIM_P2_THROW_SO,
44 ANIM_P2_THROW_O,
45 ANIM_P2_THROW_NO,
46 ANIM_BULLET,
47 ANIM_CROSSHAIR,
48 ANIM_FLASH_O,
49 ANIM_FLASH_NO,
50 ANIM_FLASH_N,
51 ANIM_FLASH_NW,
52 ANIM_FLASH_W,
53 ANIM_FLASH_SW,
54 ANIM_FLASH_S,
55 ANIM_FLASH_SO,
56 ANIM_FLAME,
57 ANIM_GRENADE_SMALL,
58 ANIM_GRENADE_BIG,
59 ANIM_GRENADE_EXPLOSION,
60 ANIM_ROCKET_O,
61 ANIM_ROCKET_NO,
62 ANIM_ROCKET_N,
63 ANIM_ROCKET_NW,
64 ANIM_ROCKET_W,
65 ANIM_ROCKET_SW,
66 ANIM_ROCKET_S,
67 ANIM_ROCKET_SO,
68 ANIM_BIG_EXPLOSION,
69 ANIM_ENEMY_GUNNER_DOWN,
70 ANIM_ENEMY_GUNNER_RIGHT,
71 ANIM_ENEMY_GUNNER_LEFT,
72 ANIM_ENEMY_GUNNER_DIE,
73 ANIM_ENEMY_BOMBER_DOWN,
74 ANIM_ENEMY_BOMBER_RIGHT,
75 ANIM_ENEMY_BOMBER_LEFT,
76 ANIM_ENEMY_BOMBER_DIE,
77 ANIM_ENEMY_BURNT,
78 ANIM_JEEP,
79 ANIM_JEEP_DESTROYED,
80 ANIM_TANK_SMALL,
81 ANIM_TANK_SMALL_DESTROYED,
82 ANIM_TANK_BIG,
83 ANIM_TANK_BIG_DESTROYED,
84 ANIM_TRANSPORTER,
85 ANIM_TRANSPORTER_DESTROYED,
86 ANIM_GUNTURRET_MOVABLE_MACHINE_N,
87 ANIM_GUNTURRET_MOVABLE_MACHINE_NO,
88 ANIM_GUNTURRET_MOVABLE_MACHINE_O,
89 ANIM_GUNTURRET_MOVABLE_MACHINE_SO,
90 ANIM_GUNTURRET_MOVABLE_MACHINE_S,
91 ANIM_GUNTURRET_MOVABLE_MACHINE_SW,
92 ANIM_GUNTURRET_MOVABLE_MACHINE_W,
93 ANIM_GUNTURRET_MOVABLE_MACHINE_NW,
94 ANIM_GUNTURRET_MOVABLE_MACHINE_DESTROYED,
95 ANIM_GUNTURRET_MOVABLE_MAN_N,
96 ANIM_GUNTURRET_MOVABLE_MAN_NO,
97 ANIM_GUNTURRET_MOVABLE_MAN_O,
98 ANIM_GUNTURRET_MOVABLE_MAN_SO,
99 ANIM_GUNTURRET_MOVABLE_MAN_S,
100 ANIM_GUNTURRET_MOVABLE_MAN_SW,
101 ANIM_GUNTURRET_MOVABLE_MAN_W,
102 ANIM_GUNTURRET_MOVABLE_MAN_NW,
103 ANIM_GUNTURRET_MOVABLE_MAN_DESTROYED,
104 ANIM_BUNKER1,
105 ANIM_BUNKER2,
106 ANIM_BUNKER3,
107 ANIM_BUNKER4,
108 ANIM_BUNKER5,
109 ANIM_BUNKER_DESTROYED,
110 ANIM_MINE_FLAT,
111 ANIM_MINE_CROSSED,
112 ANIM_FLAMETURRET,
113 ANIM_GUNTURRET_FIXED_SOUTH,
114 ANIM_GUNTURRET_FIXED_NORTH,
115 ANIM_BOSS1,
116 ANIM_BOSS2,
117 ANIM_BOSS3,
118 ANIM_BOSS4,
119 ANIM_BOSS5,
120 ANIM_BOSS6,
121 ANIM_BOSS7,
122 ANIM_BOSS8,
123 ANIM_BOSS9,
124 ANIM_BOSS10,
125 ANIM_BOSS11,
126 ANIM_BOSS12,
127 ANIM_BLOOD,
128 ANIM_MAX,
129 ANIM_INVALID = ANIM_MAX
132 #define ANIM(a, b, c) [a] = {b, b + c - 1}
134 extern const struct anim animations[];
136 #pragma RcB2 DEP "anim.c"
138 #endif