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

#ifndef KILL_LOG_H
#define KILL_LOG_H

#define KILL_LOG_MAX 5

typedef struct Kill {
    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, Kill kill);
void drawKillLog(KillLog * killLog);

#endif