forked from excitom/vp-spades
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGameText.h
51 lines (42 loc) · 984 Bytes
/
GameText.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// GameMIm.h - generic class for the button and indicator classes
#ifndef _TEXT_AREA_H_
#define _TEXT_AREA_H_
#define TEXTFONT_WIN_LOOSE 0
#define TEXTFONT_FIELD 1
#define TEXTFONT_FIELD_B 2
#define TEXTFONT_SCORE 3
#define TEXTFONT_SCORE_B 4
class CCmgTextArea : public CObject
{
// construction
public:
CCmgTextArea(int ID,CRect Area, CUbqGameBoard* pBoard,int TextFont=0);
virtual ~CCmgTextArea();
// methods
public:
BOOL IsInside(CPoint Point);
void SetStatus(int iStatus);
int GetStatus()
{
return m_iStatus;
}
void SetText(CString text);
void SetColors(COLORREF bg,COLORREF fg);
void DrawText(CDC* pDC,CPoint DrawPoint);
int GetID()
{
return m_nID;
}
// members
public:
CRect m_rArea;
// Implementation
private:
CUbqGameBoard* m_pGameBoard;
int m_iStatus;
CString m_sText;
int m_nID;
COLORREF m_nBkColor,m_nTextColor;
int m_nTextFont;
};
#endif // _MULT_IMAGE_H_