|
SuperTuxKart
|
This class manages the list of all tips. More...
#include <tips_manager.hpp>
Public Member Functions | |
| const irr::core::stringw & | getTip (const std::string &id) const |
| Get a tip by tipset ID. | |
| const unsigned int | getTipCount (const std::string &id) const |
| Get the number of tips by tipset ID. | |
| bool | isEmpty () const |
Static Public Member Functions | |
| static void | create () |
| Static function to create the instance of the tips manager. | |
| static TipsManager * | get () |
| Static function to get the tips manager. | |
| static void | destroy () |
Private Member Functions | |
| TipsManager () | |
| Constructor, which reads data/tips.xml and stores the information in objects. | |
| void | addTipSet (const XMLNode *input) |
Private Attributes | |
| std::map< std::string, TipSet > | m_all_tip_sets |
Static Private Attributes | |
| static TipsManager * | m_tips_manager = NULL |
| Pointer to the single instance. | |
This class manages the list of all tips.
It reads the data/tips.xml file, which contains the contents for each tip.