The Battle for Wesnoth  1.15.0+dev
teambuilder.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2014 - 2018 by Chris Beck <render787@gmail.com>
3  Part of the Battle for Wesnoth Project https://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 #pragma once
16 
17 #include <memory>
18 #include <vector>
19 
20 class config;
21 class team;
22 class team_builder;
23 class game_board;
24 typedef std::shared_ptr<team_builder> team_builder_ptr;
25 
26 //create an object responsible for creating and populating a team from a config
28  std::vector<team>& teams,
29  const config& level, game_board& board, int num);
30 
31 //do first stage of team initialization (everything except unit placement)
33 
34 //do second stage of team initialization (unit placement)
Game board class.
Definition: game_board.hpp:50
virtual const std::vector< team > & teams() const override
Definition: game_board.hpp:92
team_builder_ptr create_team_builder(const config &side_cfg, std::vector< team > &teams, const config &level, game_board &board, int num)
This class stores all the data for a single &#39;side&#39; (in game nomenclature).
Definition: team.hpp:44
std::shared_ptr< team_builder > team_builder_ptr
Definition: teambuilder.hpp:23
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:92