Pioneer
Loading...
Searching...
No Matches
src
GameLog.h
Go to the documentation of this file.
1
// Copyright © 2008-2024 Pioneer Developers. See AUTHORS.txt for details
2
// Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
3
4
#ifndef _GAMELOG_H
5
#define _GAMELOG_H
6
7
#include <string>
8
9
/*
10
* For storing all in-game log messages
11
* and drawing the last X messages as overlay (all views)
12
* atm it holds only 6 messages, but do extend
13
*/
14
15
class
GameLog
{
16
public
:
17
enum
Priority
{
PRIORITY_NORMAL
= 0,
18
PRIORITY_IMPORTANT
= 1,
19
PRIORITY_ALERT
= 2 };
20
21
void
Add
(
const
std::string &);
22
void
Add
(
const
std::string &from,
const
std::string &msg,
Priority
priority);
23
};
24
25
#endif
GameLog
Definition:
GameLog.h:15
GameLog::Add
void Add(const std::string &)
Definition:
GameLog.cpp:7
GameLog::Priority
Priority
Definition:
GameLog.h:17
GameLog::PRIORITY_IMPORTANT
@ PRIORITY_IMPORTANT
Definition:
GameLog.h:18
GameLog::PRIORITY_ALERT
@ PRIORITY_ALERT
Definition:
GameLog.h:19
GameLog::PRIORITY_NORMAL
@ PRIORITY_NORMAL
Definition:
GameLog.h:17
Generated by
1.9.6