00001 00002 #ifndef __HELP_H 00003 #define __help_h 00004 00005 #include <list> 00006 #include <string> 00007 using namespace std; 00008 00009 class SFCave; 00010 class StarField; 00011 00012 class Help 00013 { 00014 public: 00015 Help( SFCave *p ); 00016 ~Help(); 00017 00018 void init(); 00019 void handleKeys( SDL_KeyboardEvent &key ); 00020 void draw( SDL_Surface *screen ); 00021 void update(); 00022 private: 00023 00024 SFCave *parent; 00025 StarField *stars; 00026 00027 int textSpeed; 00028 list<string> textList; 00029 int startPos; 00030 int currLine; 00031 00032 void loadText(); 00033 }; 00034 00035 #endif
1.4.2