Pioneer
Loading...
Searching...
No Matches
src
GameLog.h
Go to the documentation of this file.
1
#ifndef _GAMELOG_H
2
#define _GAMELOG_H
3
4
#include "
libs.h
"
5
6
/*
7
* For storing all in-game log messages
8
* and drawing the last X messages as overlay (all views)
9
* atm it holds only 6 messages, but do extend
10
*/
11
12
class
GameLog
{
13
public
:
14
enum
Priority
{
PRIORITY_NORMAL
= 0,
15
PRIORITY_IMPORTANT
= 1,
16
PRIORITY_ALERT
= 2 };
17
18
void
Add
(
const
std::string &);
19
void
Add
(
const
std::string &from,
const
std::string &msg,
Priority
priority);
20
};
21
22
#endif
GameLog
Definition
GameLog.h:12
GameLog::Add
void Add(const std::string &)
Definition
GameLog.cpp:9
GameLog::Priority
Priority
Definition
GameLog.h:14
GameLog::PRIORITY_IMPORTANT
@ PRIORITY_IMPORTANT
Definition
GameLog.h:15
GameLog::PRIORITY_ALERT
@ PRIORITY_ALERT
Definition
GameLog.h:16
GameLog::PRIORITY_NORMAL
@ PRIORITY_NORMAL
Definition
GameLog.h:14
libs.h
Generated by
1.9.7