PGE Engine
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
save_filedata.h
1 /*
2  * Platformer Game Engine by Wohlstand, a free platform for game making
3  * Copyright (c) 2014-2015 Vitaly Novichkov <admin@wohlnet.ru>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef SAVE_FILEDATA_H
20 #define SAVE_FILEDATA_H
21 
22 #include "pge_file_lib_globs.h"
23 
24 typedef PGEPAIR<unsigned int, bool > visibleItem;
25 typedef PGEPAIR<PGESTRING, int > starOnLevel;
26 
28 {
29  int id;
30  unsigned int state;
31  unsigned long itemID;
32  unsigned int mountType;
33  unsigned int mountID;
34  unsigned int health;
35 };
36 
38 {
39  int characterID;
40 };
41 
43 {
44  bool ReadFileValid;
45  PGESTRING ERROR_info;
46  PGESTRING ERROR_linedata;
47  int ERROR_linenum;
48 
49  int version;
50 
51  int lives;
52  unsigned int coins;
53  unsigned int points;
54  unsigned int totalStars;
55 
56  long worldPosX;
57  long worldPosY;
58 
60 
61  unsigned int musicID;
63 
65 
66  PGEVECTOR<saveCharState > characterStates;
67  PGELIST<int > currentCharacter;
68 
69  //Visible state of world map items
70  PGEVECTOR<visibleItem > visibleLevels;
71  PGEVECTOR<visibleItem > visiblePaths;
72  PGEVECTOR<visibleItem > visibleScenery;
73  PGEVECTOR<starOnLevel > gottenStars;
74 
75  //editing:
76  bool modified;
77  bool untitled;
78  bool smbx64strict;
79  PGESTRING filename;
80  PGESTRING path;
81 };
82 
83 #endif // SAVE_FILEDATA_H
84 
Definition: save_filedata.h:37
unsigned int coins
Number of coins.
Definition: save_filedata.h:52
#define PGESTRING
A macro which equal to std::string if PGE File Library built in the STL mode and equal to QString if ...
Definition: pge_file_lib_globs.h:97
Definition: save_filedata.h:27
unsigned int musicID
Current world music ID.
Definition: save_filedata.h:61
unsigned int totalStars
Total stars.
Definition: save_filedata.h:54
int lives
Number of lives.
Definition: save_filedata.h:51
long worldPosY
Last world map position Y.
Definition: save_filedata.h:57
bool gameCompleted
Is episode was completed in last time.
Definition: save_filedata.h:64
long last_hub_warp
Last entered/exited warp Array-ID on the HUB-based episodes.
Definition: save_filedata.h:59
unsigned int points
Number of points.
Definition: save_filedata.h:53
long worldPosX
Last world map position X.
Definition: save_filedata.h:56
PGESTRING musicFile
Current world music file (custom music)
Definition: save_filedata.h:62
Contains internal settings and references for PGE File Library.
Definition: save_filedata.h:42