Diffstat (limited to 'noncore/games/sfcave-sdl/help.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/sfcave-sdl/help.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/noncore/games/sfcave-sdl/help.h b/noncore/games/sfcave-sdl/help.h new file mode 100644 index 0000000..dc9e80e --- a/dev/null +++ b/noncore/games/sfcave-sdl/help.h @@ -0,0 +1,35 @@ +
+#ifndef __HELP_H
+#define __help_h
+
+#include <list>
+#include <string>
+using namespace std;
+
+class SFCave;
+class StarField;
+
+class Help
+{
+public:
+ Help( SFCave *p );
+ ~Help();
+
+ void init();
+ void handleKeys( SDL_KeyboardEvent &key );
+ void draw( SDL_Surface *screen );
+ void update();
+private:
+
+ SFCave *parent;
+ StarField *stars;
+
+ int textSpeed;
+ list<string> textList;
+ int startPos;
+ int currLine;
+
+ void loadText();
+};
+
+#endif
|