Public Types | Public Member Functions | Public Attributes

team::team_info Struct Reference

#include <team.hpp>

Collaboration diagram for team::team_info:
Collaboration graph
[legend]

List of all members.

Public Types

enum  CONTROLLER {
  HUMAN, HUMAN_AI, AI, NETWORK,
  NETWORK_AI, EMPTY
}

Public Member Functions

 team_info ()
void read (const config &cfg)
void write (config &cfg) const
char const * controller_string () const

Public Attributes

std::string name
int gold
int start_gold
bool gold_add
int income
int income_per_village
int support_per_village
int minimum_recruit_price
int recall_cost
std::set< std::string > can_recruit
std::string team_name
t_string user_team_name
std::string save_id
std::string current_player
std::string countdown_time
int action_bonus_count
std::string flag
std::string flag_icon
std::string description
bool scroll_to_leader
t_string objectives
bool objectives_changed
 < Team's objectives for the current level.
CONTROLLER controller
bool share_maps
bool share_view
bool disallow_observers
bool allow_player
bool no_leader
bool hidden
std::string music
std::string color
int side
bool persistent

Detailed Description

Definition at line 60 of file team.hpp.


Member Enumeration Documentation

Enumerator:
HUMAN 
HUMAN_AI 
AI 
NETWORK 
NETWORK_AI 
EMPTY 

Definition at line 97 of file team.hpp.


Constructor & Destructor Documentation

team::team_info::team_info (  ) 

Definition at line 53 of file team.cpp.


Member Function Documentation

char const * team::team_info::controller_string (  )  const

Definition at line 215 of file team.cpp.

References AI, controller, EMPTY, HUMAN, HUMAN_AI, NETWORK, and NETWORK_AI.

Referenced by team::controller_string(), and write().

Here is the caller graph for this function:

void team::team_info::read ( const config cfg  ) 
void team::team_info::write ( config cfg  )  const

Member Data Documentation

Definition at line 81 of file team.hpp.

Referenced by read(), and write().

Definition at line 103 of file team.hpp.

Referenced by read(), and write().

std::set<std::string> team::team_info::can_recruit

Definition at line 109 of file team.hpp.

Referenced by team::color(), read(), team::set_color(), and write().

Definition at line 80 of file team.hpp.

Referenced by read(), and write().

Definition at line 79 of file team.hpp.

Referenced by team::current_player(), read(), team::set_current_player(), and write().

Definition at line 86 of file team.hpp.

Referenced by read(), and write().

Definition at line 102 of file team.hpp.

Referenced by team::get_disallow_observers(), read(), and write().

std::string team::team_info::flag

Definition at line 83 of file team.hpp.

Referenced by team::flag(), read(), and write().

Definition at line 84 of file team.hpp.

Referenced by team::flag_icon(), read(), and write().

Definition at line 66 of file team.hpp.

Referenced by team::build(), read(), and write().

Definition at line 68 of file team.hpp.

Referenced by team::gold_add(), team::set_gold_add(), and write().

Definition at line 105 of file team.hpp.

Referenced by team::hidden(), read(), team::set_hidden(), and write().

Definition at line 69 of file team.hpp.

Referenced by team::base_income(), read(), team::set_base_income(), and write().

Definition at line 70 of file team.hpp.

Referenced by read(), team::set_village_gold(), team::total_income(), team::village_gold(), and write().

Definition at line 72 of file team.hpp.

Referenced by team::add_recruit(), team::minimum_recruit_price(), and team::set_recruits().

Definition at line 107 of file team.hpp.

Referenced by read(), and write().

std::string team::team_info::name

Definition at line 65 of file team.hpp.

Referenced by team::name(), read(), and write().

Definition at line 104 of file team.hpp.

Referenced by team::have_leader(), team::no_leader(), read(), and write().

Definition at line 90 of file team.hpp.

Referenced by team::objectives(), read(), team::set_objectives(), and write().

< Team's objectives for the current level.

Set to true when the objectives for this time changes. Reset to false when the objectives for this team have been displayed to the user.

Definition at line 95 of file team.hpp.

Referenced by team::objectives_changed(), read(), team::reset_objectives_changed(), team::set_objectives(), team::set_objectives_changed(), and write().

Definition at line 112 of file team.hpp.

Referenced by team::persistent(), read(), and write().

Definition at line 73 of file team.hpp.

Referenced by read(), team::recall_cost(), team::set_recall_cost(), and write().

Definition at line 77 of file team.hpp.

Referenced by read(), team::save_id(), and write().

Definition at line 88 of file team.hpp.

Referenced by team::get_scroll_to_leader(), read(), and write().

Definition at line 101 of file team.hpp.

Referenced by read(), team::set_share_maps(), team::share_maps(), and write().

Definition at line 101 of file team.hpp.

Referenced by read(), team::set_share_maps(), team::set_share_view(), team::share_view(), and write().

Definition at line 111 of file team.hpp.

Referenced by team::build(), team::calculate_is_enemy(), read(), team::side(), and write().

Definition at line 67 of file team.hpp.

Referenced by team::build(), read(), team::start_gold(), and write().

Definition at line 71 of file team.hpp.

Referenced by read(), team::set_village_support(), team::village_support(), and write().

Definition at line 76 of file team.hpp.

Referenced by team::change_team(), read(), team::user_team_name(), and write().


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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