www.pudn.com > sxdl.zip > cBonus.h


#ifndef _CBONUS_H_ 
#define _CBONUS_H_ 
 
#include  
 
enum eBonusType 
{ 
	BOMB_BONUS = 0, 
	EXPLO_BONUS = 1, 
	SPEED_BONUS = 2, 
	ROCKET_BONUS = 3, 
	NULL_BONUS = 4 
}; 
 
class cBonus : public CEntity 
{ 
public: 
	cBonus(int BonusX, int BonusY, int BonusType); 
	 
	bool OnAnimate(float ElapsedTime, float AbsoluteTime); 
	//Si un tank ramasse le bonus 
	void PickUp(); 
	//Detruit le bonus 
	void DestroyBonus(); 
	void OnDying(); 
	 
	//Type du bonus (BOMB_BONUS, EXPLO_BONUS, SPEED_BONUS, ROCKET_BONUS) 
	int BonusType; 
	 
private: 
	int m_BonusX, m_BonusY; 
}; 
 
#endif