-
Notifications
You must be signed in to change notification settings - Fork 0
/
explosio.h
63 lines (46 loc) · 926 Bytes
/
explosio.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/* $Id: explosio.h,v 1.2 2003/02/14 17:52:28 eric Exp $
*
* AUTHOR(S) : M. Bilderbeek & E. Boon
*
* DESCRIPTION :
* contains typedefs of the explosion. That's all folks!
*/
#ifndef EXPLOSION_H
#define EXPLOSION_H
/*
* INCLUDES
*/
#include "object.h"
/*
* DEFINITIONS
*/
#define MAX_NOF_EXPLOSIONS 13
#define NEW_EXPLOSION_AGE 8
typedef char exp_hdl_t;
extern char nof_explosions;
/*
* TYPE DEFINITIONS
*/
typedef enum
{
EXP_NONE,
EXP_SMALL,
EXP_MEDIUM,
EXP_BIG
} expsize_e;
typedef struct
{
obj_hdl_t explosion_obj;
expsize_e size;
unsigned char age;
} explosion_t;
extern explosion_t the_explosions[MAX_NOF_EXPLOSIONS];
//extern unsigned int nof_explosions;
/*
* EXTERNAL FUNCTIONS
*/
extern void explosions_init();
extern void explosions_move();
extern exp_hdl_t explosion_create(int x, int y, expsize_e size, int dx, int dy);
extern void explosion_destroy(exp_hdl_t exp);
#endif