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

bonus.cpp

Go to the documentation of this file.
00001 #pragma warning(disable: 4786) 00002 /*------------------------------------ Includes ---------------------------------------------*/ 00003 #include "bonus.h" 00004 #include "game_manager.h" 00005 00006 00007 00008 /****************************************************************************************************/ 00009 // class cInteractive_Item 00010 /****************************************************************************************************/ 00011 cInteractive_Item::cInteractive_Item(int px, int py , cSprite_Display_Def *def, int r,Interactive_Item_Type t) 00012 { 00013 Px = px; 00014 Py = py; 00015 pDisplay_Def = def; 00016 Rayon = r; 00017 Type = t; 00018 } 00019 00020 /*--------------------------------------------------------------------------------------------------*/ 00021 void cInteractive_Item::Display() 00022 { 00023 if(pDisplay_Def!=NULL) 00024 pDisplay_Def->Display(Px-Rayon,Py-Rayon); 00025 } 00026 00027 00028 00029 /****************************************************************************************************/ 00030 // class cBomb 00031 /****************************************************************************************************/ 00032 cBomb::cBomb(int x, int y):cInteractive_Item(x,y,Game_Manager.pDisplay_Bomb,RAYON_BOMB,BOMB) 00033 { 00034 Time_Stamp = DXUtil_Timer( TIMER_GETAPPTIME ); 00035 }; 00036 00037 /*--------------------------------------------------------------------------------------------------*/ 00038 void cBomb::Reset() 00039 { 00040 Time_Stamp = DXUtil_Timer( TIMER_GETAPPTIME )-DELAY_BOMB; 00041 } 00042 00043 /****************************************************************************************************/ 00044 // class cTeleporteur 00045 /****************************************************************************************************/ 00046 cTeleporteur::cTeleporteur(int x, int y):cInteractive_Item(x,y,Game_Manager.pDisplay_Teleporteur,RAYON_TELEPORTEUR,TELEPORTEUR) 00047 { 00048 }; 00049 00050 /****************************************************************************************************/ 00051 // class cHologramme 00052 /****************************************************************************************************/ 00053 cHologramme::cHologramme(int x, int y):cInteractive_Item(x,y,Game_Manager.pDisplay_Hologramme,RAYON_HOLOGRAMME,HOLOGRAMME) 00054 { 00055 }; 00056 00057 /****************************************************************************************************/ 00058 // class cRed_Trap 00059 /****************************************************************************************************/ 00060 cRed_Trap::cRed_Trap(int x, int y):cInteractive_Item(x,y,Game_Manager.pDisplay_Red_Trap,RAYON_RED_TRAP,RED_TRAP) 00061 { 00062 }; 00063 00064 /****************************************************************************************************/ 00065 // class cBlue_Trap 00066 /****************************************************************************************************/ 00067 cBlue_Trap::cBlue_Trap(int x, int y):cInteractive_Item(x,y,Game_Manager.pDisplay_Blue_Trap,RAYON_BLUE_TRAP,BLUE_TRAP) 00068 { 00069 }; 00070 00071 /****************************************************************************************************/ 00072 // class cGreen_trap 00073 /****************************************************************************************************/ 00074 cGreen_Trap::cGreen_Trap(int x, int y):cInteractive_Item(x,y,Game_Manager.pDisplay_Green_Trap,RAYON_GREEN_TRAP,GREEN_TRAP) 00075 { 00076 }; 00077 00078 /****************************************************************************************************/ 00079 // class cCadeau 00080 /****************************************************************************************************/ 00081 cCadeau::cCadeau(int x, int y, Cadeau_Type type):cInteractive_Item(x,y,Game_Manager.pDisplay_Cadeau,RAYON_CADEAU,CADEAU) 00082 { 00083 Inside = type; 00084 }

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