mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-25 10:43:35 +00:00
DWORD→uint32_t, BYTE→uint8_t, HRESULT→int32_t, HANDLE→void*, UINT→uint32_t, INT→int32_t, WORD→uint16_t, LONG→int32_t, SHORT→int16_t, LONGLONG→int64_t, ULONG_PTR→uintptr_t, PBYTE→uint8_t*, LPWSTR/PWSTR→wchar_t*, FLOAT→float, CHAR→char, boolean→bool, CONST→const, TRUE→true, FALSE→false across 176 files (excluding vendor libs and Linux stubs).
21 lines
497 B
C++
21 lines
497 B
C++
#pragma once
|
|
|
|
// The default number of times any message should be shown
|
|
#define TUTORIAL_MESSAGE_DEFAULT_SHOW 3
|
|
|
|
class TutorialMessage {
|
|
private:
|
|
int messageId;
|
|
bool limitRepeats;
|
|
unsigned char numRepeats;
|
|
unsigned char timesShown;
|
|
uint32_t lastDisplayed;
|
|
|
|
public:
|
|
TutorialMessage(int messageId, bool limitRepeats = false,
|
|
unsigned char numRepeats = TUTORIAL_MESSAGE_DEFAULT_SHOW);
|
|
|
|
bool canDisplay();
|
|
const wchar_t* getMessageForDisplay();
|
|
};
|