The Battle for Wesnoth  1.15.12+dev
terrain_layers.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2016 - 2018 by the Battle for Wesnoth Project https://www.wesnoth.org/
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY.
10 
11  See the COPYING file for more details.
12 */
13 
14 #pragma once
15 
17 #include "terrain/builder.hpp"
18 
19 class display;
20 
21 namespace gui2::dialogs
22 {
23 
25 {
26  // Since the 'display' type name clashes with the standard GUI2 static display
27  // function name, we need a type alias.
29 
30 public:
31  terrain_layers(display_t& disp, const map_location& loc);
32 
34 
35 private:
36  virtual const std::string& window_id() const override;
37 
38  virtual void pre_show(window& window) override;
39 
42 };
43 
44 } // namespace dialogs
terrain_layers(display_t &disp, const map_location &loc)
Represents a tile of the game map, with all associated builder-specific parameters: flags...
Definition: builder.hpp:320
std::vector< log_details > logs
Definition: builder.hpp:327
Encapsulates the map of the game.
Definition: location.hpp:37
virtual const std::string & window_id() const override
The id of the window to build.
Definitions for the terrain builder.
terrain_builder::tile * tile_
terrain_builder::tile::logs tile_logs_
Abstract base class for all modal dialogs.
virtual void pre_show(window &window) override
Actions to be taken before showing the window.
base class of top level items, the only item which needs to store the final canvases to draw on...
Definition: window.hpp:64