2013-11-05 12:16:47 -08:00
|
|
|
#ifndef _GAMELOG_H
|
|
|
|
#define _GAMELOG_H
|
|
|
|
|
|
|
|
#include "libs.h"
|
2017-08-17 07:58:37 -07:00
|
|
|
|
2013-11-05 12:16:47 -08:00
|
|
|
/*
|
|
|
|
* For storing all in-game log messages
|
|
|
|
* and drawing the last X messages as overlay (all views)
|
|
|
|
* atm it holds only 6 messages, but do extend
|
|
|
|
*/
|
2017-08-17 07:58:37 -07:00
|
|
|
|
2013-11-05 12:16:47 -08:00
|
|
|
class GameLog {
|
|
|
|
public:
|
2017-08-17 07:58:37 -07:00
|
|
|
enum Priority { PRIORITY_NORMAL = 0,
|
2019-01-02 08:59:07 -08:00
|
|
|
PRIORITY_IMPORTANT = 1,
|
|
|
|
PRIORITY_ALERT = 2 };
|
2013-11-05 12:16:47 -08:00
|
|
|
|
2019-01-02 08:59:07 -08:00
|
|
|
void Add(const std::string &);
|
2017-08-17 07:58:37 -07:00
|
|
|
void Add(const std::string &from, const std::string &msg, Priority priority);
|
2013-11-05 12:16:47 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|