cHitChecker.h
资源名称:星球抢战_src.rar [点击查看]
上传用户:taoyan1984
上传日期:2010-03-01
资源大小:30k
文件大小:1k
源码类别:
射击游戏
开发平台:
Visual C++
- // cHitChecker.h: interface for the cHitChecker class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_CHITCHECKER_H__B42D2D92_08E3_11D6_BDF5_0050BA555258__INCLUDED_)
- #define AFX_CHITCHECKER_H__B42D2D92_08E3_11D6_BDF5_0050BA555258__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class cHitChecker
- {
- public:
- //protected:
- HRGN hBoundingPoly;
- public:
- void Destroy();
- BOOL HaveHitted(cHitChecker* pHitCheck, int nX, int nY, int nSrcX, int nSrcY);
- void RemovePolyFromBound(LPPOINT lpPoints, int nCount, int iX = 0, int iY = 0);
- void CreatePolygonBound(LPPOINT lpPoints, int nCount);
- cHitChecker();
- virtual ~cHitChecker();
- };
- #endif // !defined(AFX_CHITCHECKER_H__B42D2D92_08E3_11D6_BDF5_0050BA555258__INCLUDED_)