]> git.localhorst.tv Git - blobs.git/blob - src/world/Record.hpp
track a few things
[blobs.git] / src / world / Record.hpp
1 #ifndef BLOBS_WORLD_RECORD_HPP_
2 #define BLOBS_WORLD_RECORD_HPP_
3
4 #include <string>
5
6
7 namespace blobs {
8 namespace creature {
9         class Creature;
10 }
11 namespace world {
12
13 struct Record {
14
15         std::string name = "";
16         creature::Creature *holder = nullptr;
17         double value = 0.0;
18         double time = 0.0;
19         enum Type {
20                 VALUE,
21                 LENGTH,
22                 MASS,
23                 PERCENTAGE,
24                 TIME,
25         } type = VALUE;
26
27         operator bool() const noexcept { return holder; }
28
29 };
30
31 }
32 }
33
34 #endif