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

游戏

开发平台:

Visual C++

  1. /*****************************************************************************
  2. *                                                                             
  3. *   Bonus.h
  4. *                                                                             
  5. *   Electrical Engineering Faculty - Software Lab                             
  6. *   Spring semester 1998                                                      
  7. *                                                                             
  8. *   Tanks game                                                                
  9. *                                                                             
  10. *   Module description: Interface of the bonus game object.
  11. *                       
  12. *                                                                             
  13. *   Authors: Eran Yariv - 28484475                                           
  14. *            Moshe Zur  - 24070856                                           
  15. *                                                                            
  16. *                                                                            
  17. *   Date: 23/09/98                                                           
  18. *                                                                            
  19. ******************************************************************************/
  20. #ifndef _BONUS_H_
  21. #define _BONUS_H_
  22. #include "GameObject.h"
  23. class CBonus : public CGameObject
  24. {
  25. public:
  26.     CBonus (BonusType type, CPoint& pos, DWORD lifespan, DWORD StartTime);
  27.     ~CBonus();
  28.     StateType           CalcState (DWORD dwCurTime);
  29.     ObjectHeightType    GetHeight();
  30.     HIMAGE              GetImage();
  31.     CReaction           React(CGameObject *pTo);
  32.     GameObjectType      GetType();
  33.     BonusType           GetBonusType ();
  34.     void                Kill();
  35. private:
  36.     BonusType m_Type;
  37.     HIMAGE    m_hImage;
  38.     DWORD     m_uLifeSpan;
  39.     DWORD     m_uStartTime;
  40. };
  41. #include "Bonus.inl"
  42. #endif