forked from lianera/archives
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMill.h
31 lines (28 loc) · 755 Bytes
/
Mill.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Mill.h: interface for the CMill class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MILL_H__6218AF55_FD23_4733_841C_402936BD0A6F__INCLUDED_)
#define AFX_MILL_H__6218AF55_FD23_4733_841C_402936BD0A6F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Panel.h"
class CMill
{
public:
POINT GetPos(){return m_pos;}
void InitDraw(HDC hDC);
bool EatApple();
void Draw(HDC hDC,CPanel *pPanel);
void DoApple();
CMill();
virtual ~CMill();
void SetAppleNum(int num){m_AppleNum=num;}
int GetApple(){return m_AppleNum;}
private:
HDC AppleDC;
HBITMAP appleBmp;
POINT m_pos;
int m_AppleNum;
};
#endif // !defined(AFX_MILL_H__6218AF55_FD23_4733_841C_402936BD0A6F__INCLUDED_)