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.
src
client
scenes
universe
interface
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
21
#include "
client/systems/sysgui.h
"
22
#include "
client/util/searchablemenu.h
"
23
24
namespace
cqsp::client::systems
{
25
class
SysProvinceInformation
:
public
SysUserInterface
{
26
public
:
27
explicit
SysProvinceInformation
(
engine::Application
& app) :
SysUserInterface
(app) {}
28
void
Init
();
29
void
DoUI
(
int
delta_time);
30
void
DoUpdate
(
int
delta_time);
31
32
private
:
33
void
ProvinceView
();
34
35
void
ProvinceIndustryTabs
();
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;
67
bool
market_information_panel
=
false
;
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;
74
int
construction_amount
= 1;
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
;
82
SearchableMenu
launch_vehicle_menu
;
83
SearchableMenu
docked_ships_tab
;
84
85
enum class
ViewMode
{
COUNTRY_VIEW
,
CITY_VIEW
}
view_mode
=
ViewMode::COUNTRY_VIEW
;
86
};
87
88
}
// namespace cqsp::client::systems
cqsp::client::systems::SearchableMenu
Definition:
searchablemenu.h:27
cqsp::client::systems::SysProvinceInformation
Definition:
provincewindow.h:25
cqsp::client::systems::SysProvinceInformation::market_information_panel
bool market_information_panel
Definition:
provincewindow.h:67
cqsp::client::systems::SysProvinceInformation::segment_prices
bool segment_prices
Definition:
provincewindow.h:80
cqsp::client::systems::SysProvinceInformation::ProvinceIndustryTabs
void ProvinceIndustryTabs()
Definition:
provincewindow.cpp:138
cqsp::client::systems::SysProvinceInformation::visible
bool visible
Definition:
provincewindow.h:69
cqsp::client::systems::SysProvinceInformation::selected_recipe
entt::entity selected_recipe
Definition:
provincewindow.h:73
cqsp::client::systems::SysProvinceInformation::SpacePortMissionTab
void SpacePortMissionTab(const entt::entity city)
Definition:
provincewindow.cpp:825
cqsp::client::systems::SysProvinceInformation::InvestmentTab
void InvestmentTab()
Definition:
provincewindow.cpp:1113
cqsp::client::systems::SysProvinceInformation::DoUI
void DoUI(int delta_time)
Definition:
provincewindow.cpp:67
cqsp::client::systems::SysProvinceInformation::current_city
entt::entity current_city
Definition:
provincewindow.h:64
cqsp::client::systems::SysProvinceInformation::PopulationSummary
void PopulationSummary()
Definition:
provincewindow.cpp:1093
cqsp::client::systems::SysProvinceInformation::HasSpacePort
bool HasSpacePort(const entt::entity entity)
Definition:
provincewindow.cpp:883
cqsp::client::systems::SysProvinceInformation::IndustryListWindow
void IndustryListWindow()
Definition:
provincewindow.cpp:604
cqsp::client::systems::SysProvinceInformation::docked_ships_tab
SearchableMenu docked_ships_tab
Definition:
provincewindow.h:83
cqsp::client::systems::SysProvinceInformation::ProvinceView
void ProvinceView()
Definition:
provincewindow.cpp:100
cqsp::client::systems::SysProvinceInformation::current_market
entt::entity current_market
Definition:
provincewindow.h:70
cqsp::client::systems::SysProvinceInformation::RocketManufacturingTab
void RocketManufacturingTab(const entt::entity city)
Definition:
provincewindow.cpp:785
cqsp::client::systems::SysProvinceInformation::ViewMode
ViewMode
Definition:
provincewindow.h:85
cqsp::client::systems::SysProvinceInformation::ViewMode::COUNTRY_VIEW
@ COUNTRY_VIEW
cqsp::client::systems::SysProvinceInformation::ViewMode::CITY_VIEW
@ CITY_VIEW
cqsp::client::systems::SysProvinceInformation::LaunchTab
void LaunchTab(const entt::entity city)
Definition:
provincewindow.cpp:675
cqsp::client::systems::SysProvinceInformation::InfrastructureTab
void InfrastructureTab()
Definition:
provincewindow.cpp:481
cqsp::client::systems::SysProvinceInformation::DockedTab
void DockedTab(const entt::entity city)
Definition:
provincewindow.cpp:737
cqsp::client::systems::SysProvinceInformation::SpacePortOrdersTab
void SpacePortOrdersTab(const entt::entity city)
Definition:
provincewindow.cpp:851
cqsp::client::systems::SysProvinceInformation::current_province
entt::entity current_province
Definition:
provincewindow.h:66
cqsp::client::systems::SysProvinceInformation::SpacePortProjectsTab
void SpacePortProjectsTab(const entt::entity city)
Definition:
provincewindow.cpp:758
cqsp::client::systems::SysProvinceInformation::DisplayWallet
void DisplayWallet(entt::entity entity)
Definition:
provincewindow.cpp:127
cqsp::client::systems::SysProvinceInformation::IndustryListIndustryRow
void IndustryListIndustryRow(const entt::entity industry)
Definition:
provincewindow.cpp:529
cqsp::client::systems::SysProvinceInformation::individual_prices
bool individual_prices
Definition:
provincewindow.h:81
cqsp::client::systems::SysProvinceInformation::launch_vehicle_menu
SearchableMenu launch_vehicle_menu
Definition:
provincewindow.h:82
cqsp::client::systems::SysProvinceInformation::DemographicsTab
void DemographicsTab()
Definition:
provincewindow.cpp:220
cqsp::client::systems::SysProvinceInformation::ColonizationTabs
void ColonizationTabs()
Definition:
provincewindow.cpp:949
cqsp::client::systems::SysProvinceInformation::SpacePortTab
void SpacePortTab()
Definition:
provincewindow.cpp:370
cqsp::client::systems::SysProvinceInformation::construction_amount
int construction_amount
Definition:
provincewindow.h:74
cqsp::client::systems::SysProvinceInformation::city_factory_info
bool city_factory_info
Definition:
provincewindow.h:72
cqsp::client::systems::SysProvinceInformation::selected_project
entt::entity selected_project
Definition:
provincewindow.h:76
cqsp::client::systems::SysProvinceInformation::selected_ship
entt::entity selected_ship
Definition:
provincewindow.h:71
cqsp::client::systems::SysProvinceInformation::LandedTab
void LandedTab()
Definition:
provincewindow.cpp:887
cqsp::client::systems::SysProvinceInformation::IndustryTabGenericChild
void IndustryTabGenericChild(const std::string &tabname, const std::string &industryname, const ImVec2 &size)
Definition:
provincewindow.cpp:637
cqsp::client::systems::SysProvinceInformation::DoUpdate
void DoUpdate(int delta_time)
Definition:
provincewindow.cpp:98
cqsp::client::systems::SysProvinceInformation::show_space_port
bool show_space_port
Definition:
provincewindow.h:75
cqsp::client::systems::SysProvinceInformation::SpacePortResourceTab
void SpacePortResourceTab(const entt::entity city)
Definition:
provincewindow.cpp:862
cqsp::client::systems::SysProvinceInformation::RocketManufacturingRightPanel
void RocketManufacturingRightPanel(const entt::entity city)
Definition:
provincewindow.cpp:798
cqsp::client::systems::SysProvinceInformation::changed_city
bool changed_city
Definition:
provincewindow.h:65
cqsp::client::systems::SysProvinceInformation::selected_factory
entt::entity selected_factory
Definition:
provincewindow.h:78
cqsp::client::systems::SysProvinceInformation::FactoryInformation
void FactoryInformation()
Definition:
provincewindow.cpp:417
cqsp::client::systems::SysProvinceInformation::ConstructionTab
void ConstructionTab()
Definition:
provincewindow.cpp:889
cqsp::client::systems::SysProvinceInformation::view_mode
enum cqsp::client::systems::SysProvinceInformation::ViewMode view_mode
cqsp::client::systems::SysProvinceInformation::SysProvinceInformation
SysProvinceInformation(engine::Application &app)
Definition:
provincewindow.h:27
cqsp::client::systems::SysProvinceInformation::IndustryTab
void IndustryTab()
Definition:
provincewindow.cpp:297
cqsp::client::systems::SysProvinceInformation::Init
void Init()
Definition:
provincewindow.cpp:65
cqsp::client::systems::SysUserInterface
Definition:
sysgui.h:23
cqsp::engine::Application
Definition:
application.h:61
cqsp::client::systems
Definition:
editorwidgets.cpp:29
searchablemenu.h
sysgui.h
Generated on Thu Jul 9 2026 07:40:54 for Conquer Space by
1.9.2