www.pudn.com > sxdl.zip > cBomb.h
#ifndef _CBOMB_H_
#define _CBOMB_H_
#include "cExplosiveDevice.h"
#include "cTank.h"
class cBomb : public cExplosiveDevice
{
public:
//Construit une bombe a la position (BombX, BombY) dans la map et de puissance Power
//OwnerID est l'ID du tank qui a pose la bombe
cBomb(int BombX, int BombY, int Power, int OwnerID);
bool OnAnimate(float ElapsedTime, float AbsoluteTime);
void OnDying();
private:
//La position de la bombe dans la map
int m_BombX, m_BombY;
//Tank qui a pose la bombe
cTank *m_TankOwner;
//ID du tank qui a pose la bombe
int m_OwnerID;
};
#endif