Debian Codegraph @

src/gameoptions.h

raw symbols SCIP
1 // gameoptions.h
2 //
3 // (c) Robert Schuster, 2007
4 //
5 // Licensed under GNU GPL version 2 or, at your option, any later version.
6
7 #ifndef GAMEOPTIONS_H
8 #define GAMEOPTION_H
9
10 #include <vector>
11
12 class Main;
13 class MenuAction;
14
15 /**
16 * GameOptions takes all the possible options for a single player game and
17 * allows modifying them through MenuActions.
18 *
19 */
20 class GameOptions
21 {
22 bool enemyVisibility;
23
24 int players;
25 int planets;
26
27 MenuAction *enemyVisibilityAction;
28 MenuAction *playersAction;
29 MenuAction *planetsAction;
30 MenuAction *startSinglePlayerGameAction;
31
32 public:
33 GameOptions();
34
35 void setPlayers(int);
36 int getPlayers() const { return players; }
37
38 void setPlanets(int);
39 int getPlanets() const { return planets; }
40
41 void setEnemyVisibility(bool);
42 void toggleEnemyVisibility();
43 bool getEnemyVisibility() const { return enemyVisibility; }
44
45 MenuAction *getEnemyVisibilityAction();
46
47 MenuAction *getPlayersAction();
48
49 MenuAction *getPlanetsAction();
50
51 MenuAction *getStartSinglePlayerGameAction(Main &);
52 };
53
54 #endif