Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

ennemies.h

Go to the documentation of this file.
00001 /***************************************************************************************************/ 00002 /***************************************************************************************************/ 00010 /***************************************************************************************************/ 00011 /***************************************************************************************************/ 00012 #ifndef ENNEMIES_H 00013 #define ENNEMIES_H 00014 00015 /*------------------------------------ Prototypes ---------------------------------------------*/ 00016 class cEnnemy; 00017 class cRed_Ball; 00018 class cBlue_Ball; 00019 class cGreen_Ball; 00020 00021 /*------------------------------------ Define ---------------------------------------------*/ 00022 #define SPEED_RED_BALL 5 00023 #define SPEED_BLUE_BALL 3 00024 #define SPEED_GREEN_BALL 1 00025 00026 #define RAYON_RED_BALL 10 00027 #define RAYON_BLUE_BALL 10 00028 #define RAYON_GREEN_BALL 10 00029 00030 typedef enum { RED_BALL , BLUE_BALL , GREEN_BALL } Ennemy_Type; 00031 00032 /*------------------------------------ Includes ---------------------------------------------*/ 00033 #include "Unit.h" 00034 00035 00036 /*------------------------------------- Classes ---------------------------------------------*/ 00037 00038 00039 /*************************************************************************************************/ 00041 /*************************************************************************************************/ 00042 class cEnnemy:public cUnit 00043 { 00044 public: 00046 00050 cEnnemy(int x, int y,cSprite_Display_Def* def, int speed, int rayon); 00051 00053 00057 virtual bool Get_Destination(cPoint2D& destination); 00058 00060 00064 void Update_Path(); 00065 00067 void Reset(); 00068 00070 void React_To_Bomb(cBomb * bomb); 00072 void React_To_Teleporteur(cTeleporteur * teleporteur); 00074 void React_To_Hologramme(cHologramme * hologramme); 00076 void React_To_Cadeau(cCadeau * cadeau); 00077 00079 cPoint2D Initial_Position; 00080 00081 int Points_When_Killed; 00082 }; 00083 00084 00085 /*************************************************************************************************/ 00087 00092 00093 class cRed_Ball : public cEnnemy 00094 { 00095 public: 00097 00100 cRed_Ball(int x, int y); 00101 00103 bool Get_Destination(cPoint2D& destination); 00104 private: 00106 void React_To_Red_Trap(cRed_Trap * red_trap); 00107 }; 00108 00109 /*************************************************************************************************/ 00111 00115 00116 class cBlue_Ball : public cEnnemy 00117 { 00118 public: 00120 00123 cBlue_Ball(int x, int y); 00124 00126 bool Get_Destination(cPoint2D& destination); 00127 private: 00129 void React_To_Blue_Trap(cBlue_Trap * blue_trap); 00130 }; 00131 00132 /*************************************************************************************************/ 00134 00138 00139 class cGreen_Ball : public cEnnemy 00140 { 00141 public: 00143 00146 cGreen_Ball(int x, int y); 00147 00149 bool Get_Destination(cPoint2D& destination); 00150 private: 00152 void React_To_Green_Trap(cGreen_Trap * green_trap); 00153 }; 00154 00155 00156 #endif

Generated on Fri May 21 19:22:36 2004 for LIBELL by doxygen 1.3.7