fix some more timings and the long standing gradient software bug (which was function...
[supertux.git] / src / scene.h
1 //  $Id$
2 //
3 //  SuperTux -  A Jump'n Run
4 //  Copyright (C) 2003 Tobias Glaesser <tobi.web@gmx.de>
5 //
6 //  This program is free software; you can redistribute it and/or
7 //  modify it under the terms of the GNU General Public License
8 //  as published by the Free Software Foundation; either version 2
9 //  of the License, or (at your option) any later version.
10 //
11 //  This program is distributed in the hope that it will be useful,
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 //  GNU General Public License for more details.
15 //
16 //  You should have received a copy of the GNU General Public License
17 //  along with this program; if not, write to the Free Software
18 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
19
20 #ifndef SUPERTUX_SCENE_H
21 #define SUPERTUX_SCENE_H
22
23 #include "video/surface.h"
24 #include "timer.h"
25
26 #define FRAME_RATE 10 // 100 Frames per second (10ms)
27
28 // Player stats
29 struct PlayerStatus
30 {
31   int  distros;
32   int  lives;
33   enum BonusType { NO_BONUS, GROWUP_BONUS, FLOWER_BONUS };
34   BonusType bonus;
35
36   int  score_multiplier;
37   int max_score_multiplier;
38
39   PlayerStatus();
40   void reset();
41   void incLives();
42   void incCoins();
43 };
44
45 std::string bonus_to_string(PlayerStatus::BonusType b);
46 PlayerStatus::BonusType string_to_bonus(const std::string& str);
47
48 extern PlayerStatus player_status;
49
50 #endif /*SUPERTUX_SCENE_H*/