rng Class Reference

#include <random.hpp>

Inheritance diagram for rng:

Inheritance graph
[legend]
Collaboration diagram for rng:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 rng ()
int get_random ()
const configget_random_results ()
void set_random_results (const config &cfg)

Protected Member Functions

configrandom ()
void set_random (config *)

Private Attributes

configrandom_
size_t random_child_


Detailed Description

Definition at line 30 of file random.hpp.


Constructor & Destructor Documentation

rng::rng (  ) 

Definition at line 49 of file random.cpp.


Member Function Documentation

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  ) 

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]


Member Data Documentation

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().


The documentation for this class was generated from the following files:

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs