10 //each section of the player has some stats
11 typedef std::map
<std::string
, std::string
> inner_t
;
13 //there are potentially many sections
14 typedef std::map
<std::string
, inner_t
*> section_t
;
16 void addStat(const std::string
§ion_name
, const std::string
&stat_name
, const std::string
&stat_value
);
17 section_t::const_iterator
get_section_begin();
18 section_t::const_iterator
get_section_end();
20 //singleton access and construction
21 static Stats
&getInstance() {
23 _instance
= new Stats();
34 static Stats
* _instance
;