author | mark <mark> | 2002-04-14 17:08:03 (UTC) |
---|---|---|
committer | mark <mark> | 2002-04-14 17:08:03 (UTC) |
commit | bfeb067c8acfb5f1797fdc886ac71ca1b10ccf57 (patch) (side-by-side diff) | |
tree | ad77e90c90f4bfb598bbe93aa4b3e14b689c96f4 /noncore/games/kbill/Horde.h | |
parent | a0fe593db4e700989cc19e28b67a58f87823afeb (diff) | |
download | opie-bfeb067c8acfb5f1797fdc886ac71ca1b10ccf57.zip opie-bfeb067c8acfb5f1797fdc886ac71ca1b10ccf57.tar.gz opie-bfeb067c8acfb5f1797fdc886ac71ca1b10ccf57.tar.bz2 |
Import of kbill
-rw-r--r-- | noncore/games/kbill/Horde.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/noncore/games/kbill/Horde.h b/noncore/games/kbill/Horde.h new file mode 100644 index 0000000..a54a620 --- a/dev/null +++ b/noncore/games/kbill/Horde.h @@ -0,0 +1,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 |