00001 /************************************************************************* 00002 stats.h 00003 Project Piedmont game 00004 ------------------------- 00005 00006 Date Created: 11/30/00 Last Modified: 05/06/08 00007 Programmer: David Foster 00008 Copyright: (C) 2000 David Foster (see file COPYING) 00009 E-mail: dfoster@computer.org 00010 00011 Description: Responsible for updating the stats (health, score, etc) 00012 to the screen 00013 00014 This program is free software; you can redistribute it and/or modify 00015 it under the terms of the GNU General Public License as published by 00016 the Free Software Foundation; either version 2 of the License, or 00017 (at your option) any later version. 00018 00019 This program is distributed in the hope that it will be useful, 00020 but WITHOUT ANY WARRANTY; without even the implied warranty of 00021 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00022 GNU General Public License for more details. 00023 00024 You should have received a copy of the GNU General Public License 00025 along with this program; if not, write to the Free Software 00026 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00027 00028 ************************************************************************/ 00029 00030 #ifndef STATS_H 00031 #define STATS_H 00032 #define STATS_DEBUG 0 //1 allows debug statements to be output 00033 00034 #include <stdio.h> 00035 #include <iostream> 00036 #include <stdlib.h> 00037 #include <string> 00038 #include <stddef.h> 00039 #include "SDL.h" 00040 00041 #include "screen.h" 00042 #include "misc.h" 00043 using std::string; 00044 using namespace std; 00045 00046 class Stats{ 00047 private: 00048 Screen screen; 00049 int x, y, color1, color2, scale; 00050 paul_info *pinfo; 00051 public: 00052 Stats(); 00053 ~Stats(); 00054 void set_stats_display(Screen &s); 00055 void set_paul_info(paul_info *p); 00056 void update(); 00057 }; 00058 00059 #endif