File: Horde.h

package info (click to toggle)
xbill 2.0-9
  • links: PTS
  • area: main
  • in suites: slink
  • size: 528 kB
  • ctags: 339
  • sloc: cpp: 1,803; makefile: 38; sh: 21
file content (27 lines) | stat: -rw-r--r-- 762 bytes parent folder | download | duplicates (6)
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
#ifndef HORDE_H
#define HORDE_H

#include "Monster.h"
#include "Picture.h"

class Horde {			/*global structure of all bills*/
public:
	static const int MAX_BILLS  = 100;	/*max Bills per level*/
	static const int WCELS = 4;	/* # of bill walking animation frames*/
	static const int DCELS = 5;	/* # of bill dying animation frames*/
	static const int ACELS = 13;	/* # of bill switching OS frames*/
	Monster list[MAX_BILLS];	/* list of monsters in all states*/
	int width, height;
	int on_screen, off_screen;
	Picture lcels[WCELS], rcels[WCELS], acels[ACELS], dcels[DCELS];
	void load_pix();
	void setup();
	void launch(int max);
	int on(unsigned int lev);
	int max_at_once(unsigned int lev);
	int between(unsigned int lev);
	void update();
	void draw();
};

#endif