X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fstatistics.hpp;h=5419f5bca02c38d1a7cdc05ae4c7fdaa0cfa4a35;hb=6b50afc6cdd8d3555901b02ce12f15b5bac32aa8;hp=0883e36aa11ab7bb70a3481ce3574704a371585d;hpb=244488950ba1c0daf20795213619c27e6963937c;p=supertux.git diff --git a/src/statistics.hpp b/src/statistics.hpp index 0883e36aa..5419f5bca 100644 --- a/src/statistics.hpp +++ b/src/statistics.hpp @@ -59,7 +59,10 @@ public: void merge(Statistics& stats); /**< Given another Statistics object finds the best of each one */ void operator+=(const Statistics& o); /**< Add two Statistics objects */ + void declare_invalid(); /**< marks statistics as invalid for their entire lifetime (e.g. after cheating). Invalid statistics will not be merged or drawn. */ + private: + bool valid; /**< stores whether this statistics can be trusted */ Timer timer; /**< for draw_worldmap_info: time until switching to next stat */ int display_stat; /**< for draw_worldmap_info: which stat is currently displayed */ };