2019-05-30 21:24:47 +02:00
|
|
|
#pragma once
|
|
|
|
|
2019-06-15 01:34:19 +02:00
|
|
|
struct tMessage
|
2019-05-30 21:24:47 +02:00
|
|
|
{
|
2019-06-15 01:34:19 +02:00
|
|
|
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;
|
|
|
|
|
2019-05-30 21:24:47 +02:00
|
|
|
public:
|
|
|
|
static void Display(void);
|
2019-05-30 23:00:00 +02:00
|
|
|
static void ClearAllMessagesDisplayedByGame(void);
|
2019-06-15 01:34:19 +02:00
|
|
|
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);
|
2019-07-14 13:49:27 +02:00
|
|
|
static void AddBigMessage(wchar* key, uint32 time, uint16 pos);
|
2019-10-13 13:46:09 +02:00
|
|
|
static void AddBigMessageWithNumber(wchar* key, uint32 time, uint16 pos, int n1, int n2, int n3, int n4, int n5, int n6);
|
|
|
|
static void AddBigMessageWithNumberQ(wchar* key, uint32 time, uint16 pos, int n1, int n2, int n3, int n4, int n5, int n6);
|
2019-07-14 13:49:27 +02:00
|
|
|
static void AddMessage(wchar* key, uint32 time, uint16 pos);
|
|
|
|
static void AddMessageJumpQ(wchar* key, uint32 time, uint16 pos);
|
|
|
|
static void AddMessageSoon(wchar* key, uint32 time, uint16 pos);
|
2019-10-13 13:46:09 +02:00
|
|
|
static void AddMessageWithNumber(wchar* key, uint32 time, uint16 pos, int n1, int n2, int n3, int n4, int n5, int n6);
|
|
|
|
static void AddMessageJumpQWithNumber(wchar* key, uint32 time, uint16 pos, int n1, int n2, int n3, int n4, int n5, int n6);
|
|
|
|
static void AddMessageSoonWithNumber(wchar* key, uint32 time, uint16 pos, int n1, int n2, int n3, int n4, int n5, int n6);
|
2019-07-14 13:49:27 +02:00
|
|
|
static void ClearMessages();
|
2019-08-15 16:51:39 +02:00
|
|
|
static void Init();
|
2019-09-12 02:43:18 +02:00
|
|
|
static void Process();
|
2019-05-30 21:24:47 +02:00
|
|
|
};
|