aboutsummaryrefslogtreecommitdiff
path: root/src/killLog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/killLog.h')
-rw-r--r--src/killLog.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/killLog.h b/src/killLog.h
new file mode 100644
index 0000000..22f2962
--- /dev/null
+++ b/src/killLog.h
@@ -0,0 +1,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