PGE Engine
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
episode_state.h
1 #ifndef EPISODESTATE_H
2 #define EPISODESTATE_H
3 
4 #include <PGE_File_Formats/save_filedata.h>
5 
6 class LvlExit
7 {
8 public:
9  enum exitLevelCodes
10  {
11  EXIT_MenuExit=-3,
12  EXIT_Error=-2,
13  EXIT_PlayerDeath=-1,
14  EXIT_Closed=-4,
15  EXIT_Neutral=0,
16  EXIT_Card=1,
17  EXIT_Ball=2,
18  EXIT_OffScreen=3,
19  EXIT_Key=4,
20  EXIT_Crystal=5,
21  EXIT_Warp=6,
22  EXIT_Star=7,
23  EXIT_Tape=8
24  };
25 };
26 
27 class WldExit
28 {
29 public:
30  enum ExitWorldCodes
31  {
32  EXIT_close=-2,
33  EXIT_error=-1,
34  EXIT_exitWithSave=1,
35  EXIT_exitNoSave=2,
36  EXIT_beginLevel=0
37  };
38 };
39 
41 {
42  int characterID;
43  int stateID;
44  saveCharState _chsetup;
45 };
46 
48 {
49 public:
50  EpisodeState();
51  ~EpisodeState();
52  void reset();
53  bool load();
54  bool save();
56  bool episodeIsStarted;
57  bool isEpisode;
58  bool isHubLevel;
59  GamesaveData game_state;
60 
61  PlayerState getPlayerState(int playerID);
62  void setPlayerState(int playerID, PlayerState &state);
63 
64  QString WorldFile;
65  QString WorldPath;
66  QString saveFileName;
67  QString _episodePath;
68  int _recent_ExitCode_level;
69  int _recent_ExitCode_world;
70 
71  QString LevelFile;
72  QString LevelFile_hub;
73  QString LevelPath;
74  int LevelTargetWarp;
75  int gameType;
76  enum gameTypes
77  {
78  Testing=0,
79  Episode=1,
80  Battle,
81  Race
82  };
83  bool replay_on_fail;
84 };
85 
86 #endif // EPISODESTATE_H
void reset()
Sets initial state of episode.
Definition: episode_state.cpp:16
Definition: episode_state.h:6
Definition: save_filedata.h:27
Definition: episode_state.h:40
Definition: episode_state.h:27
Definition: episode_state.h:47
int numOfPlayers
Number of players.
Definition: episode_state.h:55
Definition: save_filedata.h:42