Subversion Repositories spk

Rev

Rev 1 | Details | Compare with Previous | 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
 
242 cycrow 12
#include <Utils/WStringList.h>
1 cycrow 13
 
14
#include "EZ_LCD.h"
15
 
16
typedef struct SText {
17
	struct SText *pNext;
18
	HANDLE hObject;
242 cycrow 19
	Utils::WString sText;
1 cycrow 20
} SText;
21
 
22
typedef struct SMoveObject {
23
	struct SMoveObject *pNext;
24
	HANDLE	hObject;
25
	int		iStartX;
26
	int		iStartY;
27
	int		iEndX;
28
	int		iEndY;
29
	int		iTotalTime;
30
	int		iTimeRemaining;
31
	bool	bRepeat;
32
} SMoveObject;
33
 
34
class CLcdCustomScreen  
35
{
36
public:
37
	void AddMoveObject ( SMoveObject * );
38
	void AddText ( SText * );
242 cycrow 39
	bool loadScript (const Utils::WString &, const Utils::WString&, const Utils::WString &filename);
1 cycrow 40
	void Reset ();
41
	bool Display ();
42
 
242 cycrow 43
	Utils::WString parseFilename(const Utils::WString &filename, const Utils::WString &dir);
1 cycrow 44
 
242 cycrow 45
	void setVarible (const Utils::WString &v, size_t pos);
1 cycrow 46
 
47
	CLcdCustomScreen( CEzLcd * );
48
	virtual ~CLcdCustomScreen();
49
 
50
private:
51
	void IncreaseArraySize ();
52
 
53
	int m_iCycles;
54
	int	m_iArraySize;
55
	HANDLE *m_pHandles;
56
 
57
	bool m_bDebug;
58
 
242 cycrow 59
	Utils::WStringList _lDebugLog;
60
	Utils::WStringList _lVaribles;
1 cycrow 61
 
62
	CEzLcd *m_pLcd;
63
 
64
	int m_iStartPage;
65
 
66
	SMoveObject *m_pMoveObject, *m_pEndMoveObject;
67
	SText *m_pText, *m_pEndText;
68
 
69
	HINSTANCE m_hInstance;
70
	HANDLE m_hDebug[5];
71
 
242 cycrow 72
	Utils::WString m_sProgDir;
73
	Utils::WString m_sGameDir;
74
	Utils::WString m_sScriptDir;
1 cycrow 75
};
76
 
77
#endif // !defined(AFX_LCDCUSTOMSCREEN_H__163A2AEC_D603_4C3F_AD7F_E0C7E9A2696E__INCLUDED_)