-
Notifications
You must be signed in to change notification settings - Fork 3
/
etankdirt.h
46 lines (32 loc) · 836 Bytes
/
etankdirt.h
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
#ifndef _ETANKDIRT_H_
#define _ETANKDIRT_H_
#include "zeffect.h"
class tank_dirt_graphics
{
public:
tank_dirt_graphics() { dirts = i_max = 0; }
void LoadGraphics(int palette);
ZSDL_Surface tank_dirt[2][6];
int dirts;
int i_max;
};
class ETankDirt : ZEffect
{
public:
ETankDirt(ZTime *ztime_, int cx_, int cy_, int palette_, bool do_pre_render_);
static void Init();
void Process();
void DoRender(ZMap &zmap, SDL_Surface *dest) { if(!do_pre_render) TheRender(zmap, dest); }
void DoPreRender(ZMap &zmap, SDL_Surface *dest) { if(do_pre_render) TheRender(zmap, dest); }
void TheRender(ZMap &zmap, SDL_Surface *dest);
private:
static bool finished_init;
static tank_dirt_graphics td_graphics[MAX_PLANET_TYPES];
int palette;
int cx, cy;
int dirt_i;
int ni;
bool do_pre_render;
double next_ni_time;
};
#endif