1 #ifndef BLOBS_WORLD_RECORD_HPP_
2 #define BLOBS_WORLD_RECORD_HPP_
15 static constexpr int MAX = 10;
17 std::string name = "";
26 creature::Creature *holder = nullptr;
29 operator bool() const noexcept { return holder; }
32 operator bool() const noexcept { return rank[0]; }
34 Rank *begin() noexcept { return rank; }
35 const Rank *begin() const noexcept { return rank; }
36 const Rank *cbegin() const noexcept { return rank; }
38 Rank *end() noexcept { return rank + 10; }
39 const Rank *end() const noexcept { return rank + 10; }
40 const Rank *cend() const noexcept { return rank + 10; }
42 /// update hiscore table, returns rank of given creature or -1 if not ranked
43 int Update(creature::Creature &, double value, double time) noexcept;
45 std::string ValueString(int i) const;