cHitChecker.h
上传用户:taoyan1984
上传日期:2010-03-01
资源大小:30k
文件大小:1k
源码类别:

射击游戏

开发平台:

Visual C++

  1. // cHitChecker.h: interface for the cHitChecker class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_CHITCHECKER_H__B42D2D92_08E3_11D6_BDF5_0050BA555258__INCLUDED_)
  5. #define AFX_CHITCHECKER_H__B42D2D92_08E3_11D6_BDF5_0050BA555258__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class cHitChecker  
  10. {
  11. public:
  12. //protected:
  13. HRGN hBoundingPoly;
  14. public:
  15. void Destroy();
  16. BOOL HaveHitted(cHitChecker* pHitCheck, int nX, int nY, int nSrcX, int nSrcY);
  17. void RemovePolyFromBound(LPPOINT lpPoints, int nCount, int iX = 0, int iY = 0);
  18. void CreatePolygonBound(LPPOINT lpPoints, int nCount);
  19. cHitChecker();
  20. virtual ~cHitChecker();
  21. };
  22. #endif // !defined(AFX_CHITCHECKER_H__B42D2D92_08E3_11D6_BDF5_0050BA555258__INCLUDED_)