// $Id$
//
-// SuperTux - A Jump'n Run
+// SuperTux
// Copyright (C) 2003 Tobias Glaesser <tobi.web@gmx.de>
+// Copyright (C) 2006 Matthias Braun <matze@braunis.de>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
#include "timer.hpp"
#include "serializable.hpp"
#include "sprite/sprite.hpp"
+#include "console.hpp"
static const float BORDER_X = 10;
static const float BORDER_Y = 10;
* This class memorizes player status between different game sessions (for
* example when switching maps in the worldmap)
*/
-class PlayerStatus : public Serializable
+class PlayerStatus : public Serializable, public ConsoleCommandReceiver
{
public:
PlayerStatus();
~PlayerStatus();
void reset();
- void incLives();
- void incCoins();
+ void add_coins(int count);
void set_keys(int new_key);
void write(lisp::Writer& writer);
void draw(DrawingContext& context);
void draw_keys(DrawingContext& context);
+ bool consoleCommand(std::string command, std::vector<std::string> arguments); /**< callback from Console; return false if command was unknown, true otherwise */
+
int coins;
BonusType bonus;