28 namespace tip_of_the_day
48 std::vector<game_tip>
shuffle(
const std::vector<game_tip>&
tips);
A config object defines a single node in a WML file, with access to child nodes.
The tips of day structure.
const t_string & source() const
t_string text_
The text of the tip.
std::vector< std::string > unit_filter_
List of units to filter the tip upon.
const t_string & text() const
game_tip(const t_string &text, const t_string &source, const std::string &unit_filter)
t_string source_
The source of the tip.
std::vector< game_tip > tips
std::vector< game_tip > load(const config &cfg)
Loads the tips from a config.
std::vector< game_tip > shuffle(const std::vector< game_tip > &tips)
Shuffles the tips.