Subversion Repositories spk

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 cycrow 1
// LcdCustomScreen.h: interface for the CLcdCustomScreen class.
2
//
3
//////////////////////////////////////////////////////////////////////
4
 
5
#if !defined(AFX_LCDCUSTOMSCREEN_H__163A2AEC_D603_4C3F_AD7F_E0C7E9A2696E__INCLUDED_)
6
#define AFX_LCDCUSTOMSCREEN_H__163A2AEC_D603_4C3F_AD7F_E0C7E9A2696E__INCLUDED_
7
 
8
#if _MSC_VER > 1000
9
#pragma once
10
#endif // _MSC_VER > 1000
11
 
12
#include <CyString.h>
13
#include <StringList.h>
14
 
15
#include "EZ_LCD.h"
16
 
17
typedef struct SText {
18
	struct SText *pNext;
19
	HANDLE hObject;
20
	CyString sText;
21
} SText;
22
 
23
typedef struct SMoveObject {
24
	struct SMoveObject *pNext;
25
	HANDLE	hObject;
26
	int		iStartX;
27
	int		iStartY;
28
	int		iEndX;
29
	int		iEndY;
30
	int		iTotalTime;
31
	int		iTimeRemaining;
32
	bool	bRepeat;
33
} SMoveObject;
34
 
35
class CLcdCustomScreen  
36
{
37
public:
38
	void AddMoveObject ( SMoveObject * );
39
	void AddText ( SText * );
40
	bool LoadScript ( CyString, CyString, const char *filename );
41
	void Reset ();
42
	bool Display ();
43
 
44
	CyString ParseFilename(CyString &filename, CyString &dir);
45
 
46
	void SetVarible ( CyString v, int pos );
47
 
48
	CLcdCustomScreen( CEzLcd * );
49
	virtual ~CLcdCustomScreen();
50
 
51
private:
52
	void IncreaseArraySize ();
53
 
54
	int m_iCycles;
55
	int	m_iArraySize;
56
	HANDLE *m_pHandles;
57
 
58
	bool m_bDebug;
59
 
60
	CyStringList m_lDebugLog;
61
	CyStringList m_lVaribles;
62
 
63
	CEzLcd *m_pLcd;
64
 
65
	int m_iStartPage;
66
 
67
	SMoveObject *m_pMoveObject, *m_pEndMoveObject;
68
	SText *m_pText, *m_pEndText;
69
 
70
	HINSTANCE m_hInstance;
71
	HANDLE m_hDebug[5];
72
 
73
	CyString m_sProgDir;
74
	CyString m_sGameDir;
75
	CyString m_sScriptDir;
76
};
77
 
78
#endif // !defined(AFX_LCDCUSTOMSCREEN_H__163A2AEC_D603_4C3F_AD7F_E0C7E9A2696E__INCLUDED_)