00001 /* MAINTAINER: Petko */ 00002 #ifndef _BONUS_H 00003 #define _BONUS_H 00004 00005 class Tank; 00006 /*@{ */ 00008 00017 class Bonus 00018 { 00019 public: 00020 Bonus(); 00021 virtual ~Bonus(); 00022 00027 void initByID( int params_ID ); 00028 00029 // Some callbacks 00030 00031 // This is good for bonuses like HP - or this may be allready 00032 // in Bonus() but that would require to have a bonus box for 00033 // every bonus - bad ida :-) 00034 virtual void picked(Tank &t) { mInfluencedTank = &t;}; 00035 00036 virtual double modifyMaxSpeed(double speed) { return speed; } 00037 00038 protected: 00039 00041 bool mPermanent; 00042 00044 Tank* mInfluencedTank; 00045 00047 int mIconIndex; 00048 00049 }; 00050 00052 #endif // _BONUS_H
1.4.5