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

游戏

开发平台:

Visual C++

  1. /*****************************************************************************
  2. *                                                                             
  3. *   ShieldStatus.h
  4. *                                                                             
  5. *   Electrical Engineering Faculty - Software Lab                             
  6. *   Spring semester 1998                                                      
  7. *                                                                             
  8. *   Tanks game                                                                
  9. *                                                                             
  10. *   Module description: Interface of the CShieldStatus class.
  11. *                       
  12. *                                                                             
  13. *   Authors: Eran Yariv - 28484475                                           
  14. *            Moshe Zur  - 24070856                                           
  15. *                                                                            
  16. *                                                                            
  17. *   Date: 23/09/98                                                           
  18. *                                                                            
  19. ******************************************************************************/
  20. #if !defined(AFX_SHIELDSTATUS_H__B239E761_E897_11D1_9738_A0C11B38D128__INCLUDED_)
  21. #define AFX_SHIELDSTATUS_H__B239E761_E897_11D1_9738_A0C11B38D128__INCLUDED_
  22. #if _MSC_VER >= 1000
  23. #pragma once
  24. #endif // _MSC_VER >= 1000
  25. // ShieldStatus.h : header file
  26. //
  27. #include <DIB.h>
  28. #include <GameConsts.h>
  29. /////////////////////////////////////////////////////////////////////////////
  30. // CShieldStatus window
  31. class CShieldStatus : public CButton
  32. {
  33. // Construction
  34. public:
  35. CShieldStatus();
  36. virtual ~CShieldStatus() {}
  37.     void SetLevel (UINT uShieldLevel);
  38.     CDIB *GetImage ();
  39. private:
  40.     UINT m_uPrevShieldLevel,        // 0%..100%
  41.          m_uCurShieldLevel;
  42.     CDIB m_DIB;
  43. protected:
  44. //{{AFX_MSG(CAmmoStatus)
  45. //}}AFX_MSG
  46. DECLARE_MESSAGE_MAP()
  47. };
  48. #endif // !defined(AFX_SHIELDSTATUS_H__B239E761_E897_11D1_9738_A0C11B38D128__INCLUDED_)