summaryrefslogtreecommitdiffstats
path: root/src/core/Messages.h
blob: e1f4ced1fd30534954879d751587b6b8c6715247 (plain) (blame)
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
#pragma once

struct tMessage 
{
	wchar *m_pText;
	uint16 m_nFlag;
private:
	int8 _pad6[2];
public:
	uint32 m_nTime;
	uint32 m_nStartTime;
	int32 m_nNumber[6];
	wchar *m_pString;
};

struct tBigMessage 
{
	tMessage m_Current;
	tMessage m_Stack[3];
};

struct tPreviousBrief 
{
	wchar *m_pText;
	int32 m_nNumber[6];
	wchar *m_pString;
};

class CMessages 
{
public:
	static tPreviousBrief *PreviousBriefs;
	static tMessage *BriefMessages;
	static tBigMessage *BIGMessages;

public:
	static void Display(void);
	static void ClearAllMessagesDisplayedByGame(void);
	static int WideStringCopy(wchar* dst, wchar* src, unsigned short size);
	static char WideStringCompare(wchar* str1, wchar* str2, unsigned short size);
	static void InsertNumberInString(wchar* src, int n1, int n2, int n3, int n4, int n5, int n6, wchar* dst);
	static void InsertPlayerControlKeysInString(wchar* src);
	static int GetWideStringLength(wchar *src);
	static void AddMessage(wchar*, uint32, uint16);
};