-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel.h
34 lines (30 loc) · 966 Bytes
/
model.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
#ifndef _MODEL_H_
#define _MODEL_H_
#define PI 3.141592
#define EPS 0.0001
/* Minion structure */
typedef struct{
float x, y;
int target;
int alive;
float health;
}minion;
/* Minion initialization */
void minion_init(minion* m);
/* Function that draws minion */
void draw_minion(const minion *m);
/* Function that adjusts the position of minion while moving through path */
void rotate_minion(const minion *m);
/* Function that enables towers to deal damage to minions */
void deal_damage_to_minion(minion *m, float damage);
/* Function for drawing terrain */
void draw_terrain(void);
/* Function for drawing towers */
void draw_tower(float posX, float posY);
/* Texturing the walls of a tower */
void setup_wall_texture(const char* name);
/* Function for bullet drawing */
void draw_bullet(float towX, float towZ, float minX, float minY);
/* Help function for deciding how much range will towers have */
void draw_range(float x, float z);
#endif