Mine.h
上传用户:royluo
上传日期:2007-01-05
资源大小:1584k
文件大小:2k
源码类别:

游戏

开发平台:

Visual C++

  1. /*****************************************************************************
  2. *                                                                             
  3. *   Mine.h
  4. *                                                                             
  5. *   Electrical Engineering Faculty - Software Lab                             
  6. *   Spring semester 1998                                                      
  7. *                                                                             
  8. *   Tanks game                                                                
  9. *                                                                             
  10. *   Module description: Implements the mine game object.
  11. *                       
  12. *                                                                             
  13. *   Authors: Eran Yariv - 28484475                                           
  14. *            Moshe Zur  - 24070856                                           
  15. *                                                                            
  16. *                                                                            
  17. *   Date: 23/09/98                                                           
  18. *                                                                            
  19. ******************************************************************************/
  20. #ifndef _MINE_H
  21. #define _MINE_H
  22. #include <GameObject.h>
  23. #include <TankObj.h>
  24. class CMine : public CExplodingGameObject
  25. {
  26. public:
  27.     CMine (UINT uXPos, UINT uYPos);
  28.     virtual ~CMine () {}
  29.     StateType           CalcState (DWORD dwCurTime);
  30.     ObjectHeightType    GetHeight();
  31.     CReaction           React(CGameObject *pTo);
  32.     GameObjectType      GetType();
  33.     void                Kill();
  34. private:
  35.     HIMAGE              m_himgNormal;
  36.     DWORD               m_dwStartTime;
  37. };
  38. #include <Mine.inl>
  39. #endif