Functions

gui2::tips Namespace Reference

Functions

std::vector< ttipload (const config &cfg)
 Loads the tips from a config.
std::vector< ttipshuffle (const std::vector< ttip > &tips)
 Shuffles the tips.

Function Documentation

std::vector< ttip > gui2::tips::load ( const config cfg  ) 

Loads the tips from a config.

Parameters:
cfg A config with the tips.
Returns:
The loaded tips.
std::vector< ttip > gui2::tips::shuffle ( const std::vector< ttip > &  tips  ) 

Shuffles the tips.

This routine shuffles the tips and filters out the unwanted ones.

Parameters:
tips The tips.
Returns:
The filtered tips in random order.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:23:43 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs