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

游戏

开发平台:

Visual C++

  1. /*****************************************************************************
  2. *                                                                             
  3. *   BitMask.h
  4. *                                                                             
  5. *   Electrical Engineering Faculty - Software Lab                             
  6. *   Spring semester 1998                                                      
  7. *                                                                             
  8. *   Tanks game                                                                
  9. *                                                                             
  10. *   Module description: Interface of the bitmask class.
  11. *                       
  12. *                                                                             
  13. *   Authors: Eran Yariv - 28484475                                           
  14. *            Moshe Zur  - 24070856                                           
  15. *                                                                            
  16. *                                                                            
  17. *   Date: 23/09/98                                                           
  18. *                                                                            
  19. ******************************************************************************/
  20. #ifndef _BIT_MASK_H_
  21. #define _BIT_MASK_H_
  22. #include "Dib.h"
  23. class CBitMask
  24. {
  25. public:
  26.     CBitMask (CDIB &);
  27.     ~CBitMask();
  28.     BOOL GetMaskAt(int,int);
  29.     CRect &GetActualRect ();
  30. private:
  31.     CSize   m_Size;       // should be initialized before the array is allocated!!
  32.     CRect   m_ActualRect;
  33.     BYTE   *m_BitMask;
  34. };
  35. #include "BitMask.inl"
  36. #endif