-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSprite.h
More file actions
56 lines (51 loc) · 1.49 KB
/
Sprite.h
File metadata and controls
56 lines (51 loc) · 1.49 KB
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
51
52
53
54
55
56
// Sprite.h: interface for the CSprite class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_SPRITE_H__E107475F_9EFB_45E0_A26E_03F95AE045CF__INCLUDED_)
#define AFX_SPRITE_H__E107475F_9EFB_45E0_A26E_03F95AE045CF__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CSprite
{
public:
CSprite(HANDLE hFileRead, short sSprID, short NthFile, char* FileName);
virtual ~CSprite();
BOOL MakeMemDC(CDC *pDC);
void DrawRealSprite(CDC *pDC, short dx, short dy, short sSprFrame);
void DrawRealObject(CDC *pDC, short dx, short dy, short sSprFrame);
void DrawMiniSprite(CDC *pDC, short dx, short dy, short sSprFrame, short sSize);
void DrawMiniObject(CDC *pDC, short dx, short dy, short sSprFrame, short sSize);
void DrawBrush(CDC *pDC);
BOOL InsertBrush(short x1, short y1, short x2, short y2, short pvx, short pvy);
void DeleteBrush(int index);
BOOL IsBlankTile(short sSprFrame);
DWORD m_dwBmpStartPos;
CDC BufferDC;
char m_cFileName[16];
int m_iScreenX;
int m_iScreenY;
int m_iTotalFrame;
BOOL m_bIsDCEmpty;
short m_sHowManyBrushes;
short m_sSprID;
COLORREF m_color;
struct {
char x;
char y;
char szx;
char szy;
char pvx;
char pvy;
} m_stBrush[60];
struct {
short sx;
short sy;
short szx;
short szy;
short pvx;
short pvy;
} m_stSpd[300];
bool m_bMove[300];
};
#endif // !defined(AFX_SPRITE_H__E107475F_9EFB_45E0_A26E_03F95AE045CF__INCLUDED_)