-
Notifications
You must be signed in to change notification settings - Fork 1
/
TextManager.h
62 lines (45 loc) · 1.47 KB
/
TextManager.h
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// --------------------------------------------------------------------------------------------------------------------------------
// DEMISERL
// Copyright 2014 Corremn
//
// $LastChangedBy$
// $LastChangedDate$
// $LastChangedRevision$
// $HeadURL: $
// --------------------------------------------------------------------------------------------------------------------------------
#if !defined(AFX_TEXTMANAGER_H__3613E612_B1B7_4D45_8388_4D57B782146E__INCLUDED_)
#define AFX_TEXTMANAGER_H__3613E612_B1B7_4D45_8388_4D57B782146E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <string>
#include <vector>
typedef std::vector<std::string> STRINGLIST;
class TextManager
{
public:
TextManager();
virtual ~TextManager();
int More();
void MoreStep(int clear = 0);
std::string * GetDisplayLine(int id);
void SetDisplayLine(int id,char * str,...);
std::string * GetMessageLine(int id);
void PrintDisplay(const char* name, int print_lines);
void ClearDisplayLines();
void ShowMessages();
int newLine(char * text, ...);
int clear();
int m_step;
/**
* @brief The message list
*/
STRINGLIST messageList;
std::string display_line;
std::string display_line1;
std::string display_line2;
private:
std::string display_lines[40]; //display text instead of map
int death_print;
};
#endif // !defined(AFX_TEXTMANAGER_H__3613E612_B1B7_4D45_8388_4D57B782146E__INCLUDED_)