#include "video/color.hpp"
#include "video/surface_ptr.hpp"
-namespace lisp { class Writer; }
namespace lisp { class Lisp; }
class DrawingContext;
*/
void unserialize_from_squirrel(HSQUIRRELVM vm);
- void draw_worldmap_info(DrawingContext& context); /**< draw worldmap stat HUD */
+ void draw_worldmap_info(DrawingContext& context, float target_time); /**< draw worldmap stat HUD */
void draw_endseq_panel(DrawingContext& context, Statistics* best_stats, SurfacePtr backdrop); /**< draw panel shown during level's end sequence */
void zero(); /**< Set stats to zero */
void reset(); /**< Set stats (but not totals) to zero */
void merge(const Statistics& stats); /**< Given another Statistics object finds the best of each one */
void operator+=(const Statistics& o); /**< Add two Statistics objects */
- bool completed(const Statistics& stats); /* Check if stats match total stats */
+ bool completed(const Statistics& stats, const float target_time); /* Check if stats match total stats */
void declare_invalid(); /**< marks statistics as invalid for their entire lifetime (e.g. after cheating). Invalid statistics will not be merged or drawn. */
-
+
static std::string coins_to_string(int coins, int total_coins);
static std::string frags_to_string(int badguys, int total_badguys);
static std::string time_to_string(float time);