Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
blob: 1f56ebc7a19952af689d0ffbc6d74d3be602e6e6 (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
36
37
38
39
40
41
42
43
44
45
46
/*
   base/savegame.h
   This file is part of the Osirion project and is distributed under
   the terms and conditions of the GNU General Public License version 2
*/

#ifndef __INCLUDED_BASE_SAVEGAME_H__
#define __INCLUDED_BASE_SAVEGAME_H__

// system headers
#include <iostream>

// project headers
#include "core/info.h"
#include "core/player.h"
#include "base/ship.h"

namespace game
{

/**
 * @brief a class containing helper functions for savegames
 */ 
class SaveGame {
public:
	/**
	 * @brief write player data to output stream, in .ini format
	 */
	static void player_to_stream(core::Player *player, std::ostream & os);
	
	/**
	 * @brief write ship data to output stream, in .ini format
	 */
	static void ship_to_stream(Ship *ship, std::ostream & os);
	
	/**
	 * @brief write inventory data to output stream, in .ini format
	 */
	static void inventory_to_stream(core::Inventory *inventory, std::ostream & os);

	
}; // class SaveGame

} // namespace game

#endif // __INCLUDED_BASE_SAVEGAME_H__