#include <random.hpp>
Public Member Functions | |
rng () | |
int | get_random () |
const config * | get_random_results () |
void | set_random_results (const config &cfg) |
Protected Member Functions | |
config * | random () |
void | set_random (config *) |
Private Attributes | |
config * | random_ |
size_t | random_child_ |
Definition at line 30 of file random.hpp.
rng::rng | ( | ) |
Definition at line 49 of file random.cpp.
int rng::get_random | ( | ) |
Definition at line 52 of file random.cpp.
References config::add_child(), config::get_children(), random(), random_, and random_child_.
Referenced by get_random().
const config * rng::get_random_results | ( | ) |
Definition at line 68 of file random.cpp.
References config::child(), config::get_children(), random(), random_, and random_child_.
Referenced by get_random_results().
void rng::set_random_results | ( | const config & | cfg | ) |
Definition at line 77 of file random.cpp.
References config::add_child(), config::clear_children(), config::get_children(), random(), random_, and random_child_.
Referenced by set_random_results().
config * rng::random | ( | ) | [protected] |
Definition at line 87 of file random.cpp.
References random_.
Referenced by get_random(), get_random_results(), replay::pre_replay(), and set_random_results().
void rng::set_random | ( | config * | random | ) | [protected] |
Definition at line 92 of file random.cpp.
References random_, and random_child_.
Referenced by replay::add_command(), replay::clear(), replay::get_next_action(), replay::pre_replay(), replay::set_to_end(), and replay::undo().
config* rng::random_ [private] |
Definition at line 44 of file random.hpp.
Referenced by get_random(), get_random_results(), random(), set_random(), and set_random_results().
size_t rng::random_child_ [private] |
Definition at line 45 of file random.hpp.
Referenced by get_random(), get_random_results(), set_random(), and set_random_results().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |