20#ifndef HEADER_TIPS_MANAGER_HPP
21#define HEADER_TIPS_MANAGER_HPP
31typedef std::vector<irr::core::stringw> TipSet;
43 std::map<std::string, TipSet> m_all_tip_sets;
47 void addTipSet(
const XMLNode *input);
71 const irr::core::stringw&
getTip(
const std::string&
id)
const;
73 bool isEmpty()
const {
return m_all_tip_sets.empty(); }
This class manages the list of all tips.
Definition: tips_manager.hpp:38
const irr::core::stringw & getTip(const std::string &id) const
Get a tip by ID.
Definition: tips_manager.cpp:93
static TipsManager * m_tips_manager
Pointer to the single instance.
Definition: tips_manager.hpp:41
static void create()
Static function to create the instance of the tips manager.
Definition: tips_manager.hpp:51
static TipsManager * get()
Static function to get the tips manager.
Definition: tips_manager.hpp:58
TipsManager()
Constructor, which reads data/tips.xml and stores the information in objects.
Definition: tips_manager.cpp:36
utility class used to parse XML files
Definition: xml_node.hpp:48