Symphony Of Empires
army.hpp
Go to the documentation of this file.
1 // Symphony of Empires
2 // Copyright (C) 2021, Symphony of Empires contributors
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 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program. If not, see <https://www.gnu.org/licenses/>.
16 //
17 // ----------------------------------------------------------------------------
18 // Name:
19 // client/interface/army.hpp
20 //
21 // Abstract:
22 // Does some important stuff.
23 // ----------------------------------------------------------------------------
24 
25 #pragma once
26 
27 #include <functional>
28 #include "eng3d/ui/window.hpp"
29 #include "eng3d/ui/group.hpp"
30 #include "eng3d/ui/image.hpp"
31 #include "objects.hpp"
32 
33 class World;
34 class Nation;
35 class GameState;
36 struct Building;
37 class Unit;
38 namespace UI {
39  class Chart;
40  class Image;
41  class Label;
42 }
43 
44 namespace Interface {
45  class ArmyUnitsTab : public UI::Group {
46  GameState& gs;
47  public:
48  ArmyUnitsTab(GameState& gs, int x, int y, std::function<bool(Unit& unit)> filter, UI::Widget* parent);
49  };
50 
51  // Auto-Production manager
52  class ArmyProductionTab : public UI::Group {
53  GameState& gs;
54  public:
56  };
57 
58  // Brief about unit being produced
60  GameState& gs;
61  ProvinceId province_id;
62  size_t idx;
63  public:
64  ArmyProductionUnitInfo(GameState& _gs, int x, int y, ProvinceId _province_id, size_t _idx, UI::Widget* parent);
65  };
66 
67  class ArmyView : public UI::Window {
68  GameState& gs;
69  public:
70  ArmyView(GameState& gs);
71 
74  };
75 }
ArmyProductionTab(GameState &gs, int x, int y, UI::Widget *parent)
Definition: army.cpp:62
ArmyProductionUnitInfo(GameState &_gs, int x, int y, ProvinceId _province_id, size_t _idx, UI::Widget *parent)
Definition: army.cpp:108
ArmyUnitsTab(GameState &gs, int x, int y, std::function< bool(Unit &unit)> filter, UI::Widget *parent)
Definition: army.cpp:44
ArmyProductionTab * production_tab
Definition: army.hpp:73
ArmyView(GameState &gs)
Definition: army.cpp:159
ArmyUnitsTab * units_tab
Definition: army.hpp:72
Grouping to keep widgets together without triggering events.
Definition: group.hpp:44
The master widget all the other widgets inherit from, do not use directly instead use one of the many...
Definition: widget.hpp:176
UI::Widget * parent
Definition: widget.hpp:314
Window widget, this widget is similar to a Group widget, the key difference is that this one can be m...
Definition: window.hpp:39
Roughly a batallion, consisting of approximately 500 soldiers each.
Definition: unit.hpp:80
Definition: world.hpp:114
A military outpost, on land serves as a "spawn" place for units When adjacent to a water tile this se...
Definition: building.hpp:90