-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenemies.h
64 lines (56 loc) · 1.08 KB
/
enemies.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
64
/*
* File: enemies.h
* Author: Jayson Rhynas, 20299211
* Created: January 14, 2011
*
* Declares enemy types and functions.
*/
#ifndef _ENEMIES_H_
#define _ENEMIES_H_
#include "list.h"
typedef enum {
FAST,
SLOW,
FLYING_FAST,
FLYING_SLOW,
NUM_ENEMY_TYPES
} EType;
typedef struct {
// Type
EType type;
Node *container;
int id;
int showHealth;
// Velocity and position
int x;
int y;
int dx;
int dy;
int size;
int floor;
// Misc properties
int health;
int maxHealth;
int flying;
int slow;
long long sTime;
int burn;
long long bTime;
long long lastBurn;
int burnInterval;
int maxEffectTime;
long long dTime;
int damageInterval;
int damage;
int dollarValue;
} Enemy;
Enemy* createEnemy(EType type, int x, int id);
void moveEnemy(void *ve);
void drawEnemy(void *ve);
void drawThumbEnemy(EType type, int x, int y);
void cleanupEnemies();
void createWave(EType type, int num);
void createRandomWave();
void sendWave();
void sendAndCreateWave();
#endif /* _ENEMIES_H_ */