summaryrefslogtreecommitdiff
path: root/noncore/games/sfcave-sdl/help.h
blob: 2cc32cd81fc2739ceac6b4c4076591314897decb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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