X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fplayer_status.hpp;h=16cb9069bac41e746fcda135865c632994feaf9c;hb=fdba1d4b1561c55309aee67d6e9a5b778cf21299;hp=99af85b1f57661d939ab7c924e5c316e2cd58604;hpb=eb6819ec3002b546e67401f7600cc93e0ec32daf;p=supertux.git diff --git a/src/player_status.hpp b/src/player_status.hpp index 99af85b1f..16cb9069b 100644 --- a/src/player_status.hpp +++ b/src/player_status.hpp @@ -1,7 +1,8 @@ // $Id$ // -// SuperTux - A Jump'n Run +// SuperTux // Copyright (C) 2003 Tobias Glaesser +// Copyright (C) 2006 Matthias Braun // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License @@ -45,45 +46,30 @@ public: PlayerStatus(); ~PlayerStatus(); void reset(); - void incLives(); - void incCoins(); - void set_keys(int new_key); + void add_coins(int count, bool play_sound = true); void write(lisp::Writer& writer); void read(const lisp::Lisp& lisp); void draw(DrawingContext& context); - void draw_keys(DrawingContext& context); bool consoleCommand(std::string command, std::vector arguments); /**< callback from Console; return false if command was unknown, true otherwise */ int coins; BonusType bonus; + int max_fire_bullets; /**< maximum number of fire bullets in play */ + int max_ice_bullets; /**< maximum number of ice bullets in play */ int score_multiplier; int max_score_multiplier; void operator= (const PlayerStatus& other); - enum { - KEY_BRASS = 0x001, - KEY_IRON = 0x002, - KEY_BRONZE = 0x004, - KEY_SILVER = 0x008, - KEY_GOLD = 0x010, - }; - private: // don't use this PlayerStatus(const PlayerStatus& other); - int keys; std::auto_ptr tux_life; - std::auto_ptr key_iron; - std::auto_ptr key_brass; - std::auto_ptr key_bronze; - std::auto_ptr key_silver; - std::auto_ptr key_gold; }; // global player state