home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / b / boodfly.zip / BOODLES.H < prev    next >
C/C++ Source or Header  |  1992-10-27  |  3KB  |  162 lines

  1. #define BOODLES.H
  2.  
  3. #ifndef ACTOR.H
  4. #include "actor.h"
  5. #endif
  6.  
  7. #ifndef FACTOR.H
  8. #include "factor.h"
  9. #endif
  10.  
  11. #ifndef EVENT.H
  12. #include "event.h"
  13. #endif
  14.  
  15. #ifndef FEVENT.H
  16. #include "fevent.h"
  17. #endif
  18.  
  19.  
  20. #define GRASS 0
  21. #define WATER 2
  22. #define MOUNTAINS 1
  23. #define VALLEY 3
  24.  
  25. #define BOODLE 0
  26. #define BOODLEWIZ 1
  27. #define BOODLINO 2
  28. #define UNSETBOODLEBLASTER 3
  29. #define BOODLETTAH 4
  30. #define GRUMJUG 5
  31. #define GRUMKING 6
  32. #define GRUMBUGGY 7
  33. #define UNSETGRUMBOMB 8
  34. #define DEAD 9
  35. #define BOODLEBLASTER 10
  36. #define GRUMBOMB 11
  37. #define CURSOR 12
  38. #define BROKEBUGGY 13
  39. #define SAFEBOODLE 14
  40.  
  41. #define SETTINGGRUMBOMB 20
  42. #define CARRIEDGRUMJUG 21
  43.  
  44. void load_boodle_icons(void);
  45.  
  46. class bombeat: public fevent
  47. {
  48. public:
  49.   bombeat() {assign_fevent(3, ONEFACE);};
  50. };
  51.  
  52. class boodblast: public fevent
  53. {
  54. public:
  55.   boodblast() {assign_fevent(2, ONEFACE);}
  56. };
  57.  
  58. class boodbop: public fevent
  59. {
  60. public:
  61.   boodbop() {assign_fevent(0, ONEFACE);};
  62. };
  63.  
  64. class grumbop: public fevent
  65. {
  66. public:
  67.   grumbop() {assign_fevent(1, FOURFACE);};
  68. };
  69.  
  70.  
  71. class boodlepiece : public factor
  72. {
  73. public:
  74.   char movesleft;
  75.   boodlepiece * cargo, * cargo2;
  76.   boodlepiece() {movesleft = 0; cargo = NULL; cargo2 = NULL;};
  77.   void die(void);
  78.   virtual void setmovement(void);
  79.   virtual void move(byte direction);
  80.   void advance(void);
  81.   void grumwomp(animactor * thebomb);
  82.   virtual void attack(boodlepiece * target);
  83.   virtual void pick_up(void) = 0;
  84.   virtual void drop(void);
  85. };
  86.  
  87.  
  88. class boodle : public boodlepiece
  89. {
  90. public:
  91.   boodle() {assign_icon(BOODLE, ONEFACE);};
  92.   boodle(int boodletype) {assign_icon(boodletype,ONEFACE);};
  93.   virtual void setmovement(void);
  94.   virtual void pick_up(void);
  95. };
  96.  
  97. class boodlewiz : public boodle
  98. {
  99. public:
  100.   boodlewiz() : boodle(BOODLEWIZ) {};
  101. };
  102.  
  103. class boodlino : public boodle
  104. {
  105. public:
  106.   boodlino() : boodle(BOODLINO) {};
  107.   void move(byte direction);
  108.   void attack(boodlepiece * target);
  109. };
  110.  
  111. class boodleblaster : public boodle
  112. {
  113. public:
  114.   boodleblaster() : boodle(UNSETBOODLEBLASTER) {};
  115.   virtual void setmovement(void);
  116. };
  117.  
  118.  
  119. class boodlettah : public boodle
  120. {
  121. public:
  122.   boodlettah() : boodle(BOODLETTAH) {};
  123. };
  124.  
  125. class grumjug : public boodlepiece
  126. {
  127. public:
  128.   grumjug() {assign_icon(GRUMJUG, TWOFACE);};
  129.   virtual void setmovement(void);
  130.   void move(byte direction);
  131.   void attack(boodlepiece * target);
  132.   void pick_up(void);
  133. };
  134.  
  135. class grumking : public boodlepiece
  136. {
  137. public:
  138.   grumking() {assign_icon(GRUMKING, ONEFACE);};
  139.   virtual void setmovement(void);
  140.   void pick_up(void) {};
  141. };
  142.  
  143. class grumbuggy : public boodlepiece
  144. {
  145. public:
  146.   grumbuggy() {assign_icon(GRUMBUGGY, TWOFACE);};
  147.   virtual void setmovement(void);
  148.   void move(byte direction);
  149.   void pick_up(void);
  150.   void drop(void);
  151. };
  152.  
  153. class grumbomb : public boodlepiece
  154. {
  155. public:
  156.   grumbomb() {assign_icon(UNSETGRUMBOMB, ONEFACE);};
  157.   virtual void setmovement(void);
  158.   void move(byte direction);
  159.   void pick_up(void){};
  160. };
  161.  
  162.