1 /*
2 Copyright © 2015 Igor Paliychuk
3 Copyright © 2015 Justin Jacobs
4 
5 This file is part of FLARE.
6 
7 FLARE is free software: you can redistribute it and/or modify it under the terms
8 of the GNU General Public License as published by the Free Software Foundation,
9 either version 3 of the License, or (at your option) any later version.
10 
11 FLARE is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 PARTICULAR PURPOSE.  See the GNU General Public License for more details.
14 
15 You should have received a copy of the GNU General Public License along with
16 FLARE.  If not, see http://www.gnu.org/licenses/
17 */
18 
19 /**
20  * class SaveLoad
21  *
22  * Save function for the GameStatePlay.
23  */
24 
25 #ifndef SAVELOAD_H
26 #define SAVELOAD_H
27 
28 class SaveLoad {
29 public:
30 	SaveLoad();
31 	~SaveLoad();
32 
getGameSlot()33 	int getGameSlot() {
34 		return game_slot;
35 	}
setGameSlot(int slot)36 	void setGameSlot(int slot) {
37 		game_slot = slot;
38 	}
39 
40 	void saveGame();
41 	void loadGame();
42 	void loadClass(int index);
43 	void loadStash();
44 
45 private:
46 	void applyPlayerData();
47 	void loadPowerTree();
48 
49 	int game_slot;
50 };
51 
52 #endif
53