aboutsummaryrefslogtreecommitdiff
path: root/src/killLog.h
blob: b6e920a6fab510def327b337f36c3eb6874a7647 (plain)
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
#include "gameCommon.h"
#include "entity.h"

#ifndef KILL_LOG_H
#define KILL_LOG_H

#define KILL_LOG_MAX 10
#define KILL_MESSAGE_MAX 100
#define KILL_LOG_FONT_SIZE 16

typedef struct Kill {
    EntityType type;
    EntityId id;
    EntityFingerprint fingerPrint;
    double timeAtKill;
} Kill;

typedef struct KillLog {
    Kill kills[KILL_LOG_MAX];
    size_t killCount;
} KillLog;

void initKillLog(KillLog * killLog);
void pushKill(KillLog * killLog, Entity entity);
void drawKillLog(KillLog * killLog, Vector2 position);
void resetKillLog(KillLog * killLog);

#endif