forked from avose/ChromoCraft
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtower.h
More file actions
29 lines (23 loc) · 717 Bytes
/
tower.h
File metadata and controls
29 lines (23 loc) · 717 Bytes
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
#ifndef TOWER_H
#define TOWER_H
#include "vector.h"
#include "gem.h"
#include "enemy.h"
#define TOWER_FLAG_NONE 0
#define TOWER_FLAG_SELECTED 1
typedef struct str_tower_t {
gem_t gem;
vector3_t position;
vector3_t scr_pos;
u64b_t ftime; // Time last fired
u64b_t flags;
} tower_t;
////////////////////////////////////////////////////////////
// Interface
////////////////////////////////////////////////////////////
#ifndef TOWER_C
extern void tower_fire_towers(tower_t *towers, const u32b_t ntowers, enemy_t *enemies, const u32b_t nenemies, const u64b_t time);
extern void tower_install_gem(tower_t *tower, gem_t *gem);
extern void tower_remove_gem (tower_t *tower);
#endif
#endif