player_info Struct Reference

Information on a particular player of the game. More...

#include <gamestatus.hpp>

Collaboration diagram for player_info:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 player_info ()
void debug ()

Public Attributes

std::string name
 Stores the current_player name.
int gold
 Amount of gold the player has saved.
bool gold_add
 Amount of gold is added to the starting gold, if not it uses the highest of the two.
std::vector< unitavailable_units
 Units the player may recall.
std::set< std::string > can_recruit
 Units the player has the ability to recruit.


Detailed Description

Information on a particular player of the game.

Definition at line 76 of file gamestatus.hpp.


Constructor & Destructor Documentation

player_info::player_info (  )  [inline]

Definition at line 78 of file gamestatus.hpp.


Member Function Documentation

void player_info::debug (  ) 

Definition at line 1238 of file gamestatus.cpp.

References available_units, gold, and LOG_NG.


Member Data Documentation

std::string player_info::name

Stores the current_player name.

Definition at line 86 of file gamestatus.hpp.

Referenced by play_game(), playsingle_controller::play_scenario(), read_player(), and write_player().

Amount of gold the player has saved.

Definition at line 87 of file gamestatus.hpp.

Referenced by debug(), get_player_info(), play_game(), playsingle_controller::play_scenario(), read_player(), and write_player().

Amount of gold is added to the starting gold, if not it uses the highest of the two.

Definition at line 88 of file gamestatus.hpp.

Referenced by get_player_info(), playsingle_controller::play_scenario(), read_player(), and write_player().

std::set<std::string> player_info::can_recruit

Units the player has the ability to recruit.

Definition at line 92 of file gamestatus.hpp.

Referenced by get_player_info(), play_game(), read_player(), and write_player().


The documentation for this struct 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