-
Notifications
You must be signed in to change notification settings - Fork 1
/
Logger.h
41 lines (36 loc) · 858 Bytes
/
Logger.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
#ifndef __LOGGER_H__
#define __LOGGER_H__
#include <string>
#include <deque>
#include <sstream>
#include "Graphics.h"
struct SDL_Color;
namespace Log{
const int MAXLOGMESSAGES = 10;
const std::string fontName = "resources/Raleway-Medium.ttf";
const int size = 12;
const SDL_Color logColor = {0xFF,0xFF,0xFF,0xFF};
}
class Logger{
public:
void logAttack(std::string,std::string);
void logDamage(std::string,std::string,int);
void logKilled(std::string);
void logNewFloor(int);
void clearLog();
void logLine();
void logMiss(std::string);
void logXP(int xp);
void logLevelUp(int level);
void logCrit(std::string,std::string,int);
void logStatA();
void logStatD();
void logStatH();
void logStatL();
void logHeal(int);
std::deque<std::string> logMessages;
void render(Graphics &graphics);
private:
void logAdd(std::string);
};
#endif