pioneer/src/GameLog.h

23 lines
446 B
C
Raw Permalink Normal View History

#ifndef _GAMELOG_H
#define _GAMELOG_H
#include "libs.h"
2017-08-17 07:58:37 -07: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
class GameLog {
public:
2017-08-17 07:58:37 -07:00
enum Priority { PRIORITY_NORMAL = 0,
PRIORITY_IMPORTANT = 1,
PRIORITY_ALERT = 2 };
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);
};
#endif