Conquer Space 0.0.0
A space themed grand strategy game set in the near future, with realistic orbital mechanics, and an emphasis on economics and politics.
provincewindow.h
Go to the documentation of this file.
1/* Conquer Space
2 * Copyright (C) 2021-2025 Conquer Space
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#pragma once
18
19#include <string>
20
23
24namespace cqsp::client::systems {
26 public:
28 void Init();
29 void DoUI(int delta_time);
30 void DoUpdate(int delta_time);
31
32 private:
33 void ProvinceView();
34
36 void DemographicsTab();
37 void IndustryTab();
38 void InvestmentTab();
39 void SpacePortTab();
40 void SpacePortOrdersTab(const entt::entity city);
41 void SpacePortResourceTab(const entt::entity city);
42 void LaunchTab(const entt::entity city);
43 void DockedTab(const entt::entity city);
44 void SpacePortProjectsTab(const entt::entity city);
45 void RocketManufacturingTab(const entt::entity city);
46 void RocketManufacturingRightPanel(const entt::entity city);
47 void SpacePortMissionTab(const entt::entity city);
48 void InfrastructureTab();
49 void IndustryListWindow();
50 void DisplayWallet(entt::entity entity);
51 void ConstructionTab();
52 bool HasSpacePort(const entt::entity entity);
53 void LandedTab();
54 void IndustryListIndustryRow(const entt::entity industry);
55
56 void PopulationSummary();
57 void ColonizationTabs();
58
59 void FactoryInformation();
60
61 template <typename T>
62 void IndustryTabGenericChild(const std::string& tabname, const std::string& industryname, const ImVec2& size);
63
64 entt::entity current_city = entt::null;
65 bool changed_city = false;
66 entt::entity current_province = entt::null;
68
69 bool visible = false;
70 entt::entity current_market = entt::null;
71 entt::entity selected_ship = entt::null;
72 bool city_factory_info = false;
73 entt::entity selected_recipe = entt::null;
75 bool show_space_port = false;
76 entt::entity selected_project = entt::null;
77
78 entt::entity selected_factory = entt::null;
79
80 bool segment_prices = true;
81 bool individual_prices = false;
84
86};
87
88} // namespace cqsp::client::systems
Definition: searchablemenu.h:27
Definition: provincewindow.h:25
bool market_information_panel
Definition: provincewindow.h:67
bool segment_prices
Definition: provincewindow.h:80
void ProvinceIndustryTabs()
Definition: provincewindow.cpp:138
bool visible
Definition: provincewindow.h:69
entt::entity selected_recipe
Definition: provincewindow.h:73
void SpacePortMissionTab(const entt::entity city)
Definition: provincewindow.cpp:825
void InvestmentTab()
Definition: provincewindow.cpp:1113
void DoUI(int delta_time)
Definition: provincewindow.cpp:67
entt::entity current_city
Definition: provincewindow.h:64
void PopulationSummary()
Definition: provincewindow.cpp:1093
bool HasSpacePort(const entt::entity entity)
Definition: provincewindow.cpp:883
void IndustryListWindow()
Definition: provincewindow.cpp:604
SearchableMenu docked_ships_tab
Definition: provincewindow.h:83
void ProvinceView()
Definition: provincewindow.cpp:100
entt::entity current_market
Definition: provincewindow.h:70
void RocketManufacturingTab(const entt::entity city)
Definition: provincewindow.cpp:785
ViewMode
Definition: provincewindow.h:85
void LaunchTab(const entt::entity city)
Definition: provincewindow.cpp:675
void InfrastructureTab()
Definition: provincewindow.cpp:481
void DockedTab(const entt::entity city)
Definition: provincewindow.cpp:737
void SpacePortOrdersTab(const entt::entity city)
Definition: provincewindow.cpp:851
entt::entity current_province
Definition: provincewindow.h:66
void SpacePortProjectsTab(const entt::entity city)
Definition: provincewindow.cpp:758
void DisplayWallet(entt::entity entity)
Definition: provincewindow.cpp:127
void IndustryListIndustryRow(const entt::entity industry)
Definition: provincewindow.cpp:529
bool individual_prices
Definition: provincewindow.h:81
SearchableMenu launch_vehicle_menu
Definition: provincewindow.h:82
void DemographicsTab()
Definition: provincewindow.cpp:220
void ColonizationTabs()
Definition: provincewindow.cpp:949
void SpacePortTab()
Definition: provincewindow.cpp:370
int construction_amount
Definition: provincewindow.h:74
bool city_factory_info
Definition: provincewindow.h:72
entt::entity selected_project
Definition: provincewindow.h:76
entt::entity selected_ship
Definition: provincewindow.h:71
void LandedTab()
Definition: provincewindow.cpp:887
void IndustryTabGenericChild(const std::string &tabname, const std::string &industryname, const ImVec2 &size)
Definition: provincewindow.cpp:637
void DoUpdate(int delta_time)
Definition: provincewindow.cpp:98
bool show_space_port
Definition: provincewindow.h:75
void SpacePortResourceTab(const entt::entity city)
Definition: provincewindow.cpp:862
void RocketManufacturingRightPanel(const entt::entity city)
Definition: provincewindow.cpp:798
bool changed_city
Definition: provincewindow.h:65
entt::entity selected_factory
Definition: provincewindow.h:78
void FactoryInformation()
Definition: provincewindow.cpp:417
void ConstructionTab()
Definition: provincewindow.cpp:889
enum cqsp::client::systems::SysProvinceInformation::ViewMode view_mode
SysProvinceInformation(engine::Application &app)
Definition: provincewindow.h:27
void IndustryTab()
Definition: provincewindow.cpp:297
void Init()
Definition: provincewindow.cpp:65
Definition: application.h:61
Definition: editorwidgets.cpp:29