7
class Horde { /*global structure of all bills*/
9
static const int MAX_BILLS = 100; /*max Bills per level*/
10
static const int WCELS = 4; /* # of bill walking animation frames*/
11
static const int DCELS = 5; /* # of bill dying animation frames*/
12
static const int ACELS = 13; /* # of bill switching OS frames*/
13
Monster list[MAX_BILLS]; /* list of monsters in all states*/
15
int on_screen, off_screen;
16
Picture lcels[WCELS], rcels[WCELS], acels[ACELS], dcels[DCELS];
20
int on(unsigned int lev);
21
int max_at_once(unsigned int lev);
22
int between(unsigned int lev);
7
#define HORDE_COUNTER_OFF 0
8
#define HORDE_COUNTER_ON 1
9
#define HORDE_COUNTER_MAX 1
11
void Horde_setup(void);
12
void Horde_update(int iteration);
13
void Horde_draw(void);
14
Bill * Horde_get_bill(int index);
15
void Horde_move_bill(Bill *bill);
16
void Horde_remove_bill(Bill *bill);
17
void Horde_add_bill(Bill *bill);
18
Bill *Horde_clicked_stray(int x, int y);
19
int Horde_process_click(int x, int y);
20
void Horde_inc_counter(int counter, int val);
21
int Horde_get_counter(int counter);