~ubuntu-branches/ubuntu/natty/xbill/natty

« back to all changes in this revision

Viewing changes to Horde.h

  • Committer: Bazaar Package Importer
  • Author(s): Adrian Bridgett
  • Date: 2004-05-25 20:05:48 UTC
  • mfrom: (1.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20040525200548-fmki5q3d0wkntyly
Tags: 2.1-3
use POSIX compliant chown call and set -e in postinst as per
policy (closes: #250722)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef HORDE_H
2
2
#define HORDE_H
3
3
 
4
 
#include "Monster.h"
5
 
#include "Picture.h"
6
 
 
7
 
class Horde {                   /*global structure of all bills*/
8
 
public:
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*/
14
 
        int width, height;
15
 
        int on_screen, off_screen;
16
 
        Picture lcels[WCELS], rcels[WCELS], acels[ACELS], dcels[DCELS];
17
 
        void load_pix();
18
 
        void setup();
19
 
        void launch(int max);
20
 
        int on(unsigned int lev);
21
 
        int max_at_once(unsigned int lev);
22
 
        int between(unsigned int lev);
23
 
        void update();
24
 
        void draw();
25
 
};
 
4
#include "types.h"
 
5
 
 
6
/* Counters */
 
7
#define HORDE_COUNTER_OFF 0
 
8
#define HORDE_COUNTER_ON 1
 
9
#define HORDE_COUNTER_MAX 1
 
10
 
 
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);
26
22
 
27
23
#endif