The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
teambuilder.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2014 - 2016 by Chris Beck <[email protected]>
3  Part of the Battle for Wesnoth Project http://www.wesnoth.org/
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
15 
16 
17 #ifndef TEAMBUILDER_HPP_INCLUDED
18 #define TEAMBUILDER_HPP_INCLUDED
19 
20 #include <vector>
21 #include <boost/shared_ptr.hpp>
22 
23 class config;
24 class gamemap;
25 class team;
26 class team_builder;
27 class game_board;
29 
30 //create an object responsible for creating and populating a team from a config
32  std::vector<team>& teams,
33  const config& level, game_board& board);
34 
35 //do first stage of team initialization (everything except unit placement)
37 
38 //do second stage of team initialization (unit placement)
40 
41 #endif
Game board class.
Definition: game_board.hpp:55
GLint level
Definition: glew.h:1220
team_builder_ptr create_team_builder(const config &side_cfg, std::vector< team > &teams, const config &level, game_board &board)
static std::vector< team > *& teams
Definition: team.cpp:50
This class stores all the data for a single 'side' (in game nomenclature).
Definition: team.hpp:50
Encapsulates the map of the game.
Definition: map.hpp:37
boost::shared_ptr< team_builder > team_builder_ptr
Definition: teambuilder.hpp:27
void build_team_stage_one(team_builder_ptr tb_ptr)
void build_team_stage_two(team_builder_ptr tb_ptr)
A config object defines a single node in a WML file, with access to child nodes.
Definition: config.hpp:83