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
23
namespace
cqsp::client::systems
{
24
class
SysProvinceInformation
:
public
SysUserInterface
{
25
public
:
26
explicit
SysProvinceInformation
(
engine::Application
& app) :
SysUserInterface
(app) {}
27
void
Init
();
28
void
DoUI
(
int
delta_time);
29
void
DoUpdate
(
int
delta_time);
30
31
private
:
32
void
ProvinceView
();
33
34
void
ProvinceIndustryTabs
();
35
void
DemographicsTab
();
36
void
IndustryTab
();
37
void
SpacePortTab
();
38
void
SpacePortOrdersTab
(
const
entt::entity city);
39
void
SpacePortResourceTab
(
const
entt::entity city);
40
void
LaunchTab
(
const
entt::entity city);
41
void
DockedTab
(
const
entt::entity city);
42
void
InfrastructureTab
();
43
void
IndustryListWindow
();
44
void
DisplayWallet
(entt::entity entity);
45
void
ConstructionTab
();
46
bool
HasSpacePort
(
const
entt::entity entity);
47
void
IndustryListIndustryRow
(
const
entt::entity industry);
48
49
template
<
typename
T>
50
void
IndustryTabGenericChild
(
const
std::string& tabname,
const
std::string& industryname,
const
ImVec2& size);
51
52
entt::entity
current_city
= entt::null;
53
bool
changed_city
=
false
;
54
entt::entity
current_province
= entt::null;
55
bool
market_information_panel
=
false
;
56
57
bool
visible
=
false
;
58
entt::entity
current_market
= entt::null;
59
entt::entity
selected_ship
= entt::null;
60
bool
city_factory_info
=
false
;
61
entt::entity
selected_recipe
= entt::null;
62
int
construction_amount
= 1;
63
64
enum class
ViewMode
{
COUNTRY_VIEW
,
CITY_VIEW
}
view_mode
=
ViewMode::COUNTRY_VIEW
;
65
};
66
67
}
// namespace cqsp::client::systems
cqsp::client::systems::SysProvinceInformation
Definition:
provincewindow.h:24
cqsp::client::systems::SysProvinceInformation::market_information_panel
bool market_information_panel
Definition:
provincewindow.h:55
cqsp::client::systems::SysProvinceInformation::ProvinceIndustryTabs
void ProvinceIndustryTabs()
Definition:
provincewindow.cpp:131
cqsp::client::systems::SysProvinceInformation::visible
bool visible
Definition:
provincewindow.h:57
cqsp::client::systems::SysProvinceInformation::selected_recipe
entt::entity selected_recipe
Definition:
provincewindow.h:61
cqsp::client::systems::SysProvinceInformation::DoUI
void DoUI(int delta_time)
Definition:
provincewindow.cpp:61
cqsp::client::systems::SysProvinceInformation::current_city
entt::entity current_city
Definition:
provincewindow.h:52
cqsp::client::systems::SysProvinceInformation::HasSpacePort
bool HasSpacePort(const entt::entity entity)
Definition:
provincewindow.cpp:566
cqsp::client::systems::SysProvinceInformation::IndustryListWindow
void IndustryListWindow()
Definition:
provincewindow.cpp:402
cqsp::client::systems::SysProvinceInformation::ProvinceView
void ProvinceView()
Definition:
provincewindow.cpp:90
cqsp::client::systems::SysProvinceInformation::current_market
entt::entity current_market
Definition:
provincewindow.h:58
cqsp::client::systems::SysProvinceInformation::ViewMode
ViewMode
Definition:
provincewindow.h:64
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:468
cqsp::client::systems::SysProvinceInformation::InfrastructureTab
void InfrastructureTab()
Definition:
provincewindow.cpp:322
cqsp::client::systems::SysProvinceInformation::DockedTab
void DockedTab(const entt::entity city)
Definition:
provincewindow.cpp:520
cqsp::client::systems::SysProvinceInformation::SpacePortOrdersTab
void SpacePortOrdersTab(const entt::entity city)
Definition:
provincewindow.cpp:534
cqsp::client::systems::SysProvinceInformation::current_province
entt::entity current_province
Definition:
provincewindow.h:54
cqsp::client::systems::SysProvinceInformation::DisplayWallet
void DisplayWallet(entt::entity entity)
Definition:
provincewindow.cpp:120
cqsp::client::systems::SysProvinceInformation::IndustryListIndustryRow
void IndustryListIndustryRow(const entt::entity industry)
Definition:
provincewindow.cpp:333
cqsp::client::systems::SysProvinceInformation::DemographicsTab
void DemographicsTab()
Definition:
provincewindow.cpp:188
cqsp::client::systems::SysProvinceInformation::SpacePortTab
void SpacePortTab()
Definition:
provincewindow.cpp:287
cqsp::client::systems::SysProvinceInformation::construction_amount
int construction_amount
Definition:
provincewindow.h:62
cqsp::client::systems::SysProvinceInformation::city_factory_info
bool city_factory_info
Definition:
provincewindow.h:60
cqsp::client::systems::SysProvinceInformation::selected_ship
entt::entity selected_ship
Definition:
provincewindow.h:59
cqsp::client::systems::SysProvinceInformation::IndustryTabGenericChild
void IndustryTabGenericChild(const std::string &tabname, const std::string &industryname, const ImVec2 &size)
Definition:
provincewindow.cpp:430
cqsp::client::systems::SysProvinceInformation::DoUpdate
void DoUpdate(int delta_time)
Definition:
provincewindow.cpp:88
cqsp::client::systems::SysProvinceInformation::SpacePortResourceTab
void SpacePortResourceTab(const entt::entity city)
Definition:
provincewindow.cpp:545
cqsp::client::systems::SysProvinceInformation::changed_city
bool changed_city
Definition:
provincewindow.h:53
cqsp::client::systems::SysProvinceInformation::ConstructionTab
void ConstructionTab()
Definition:
provincewindow.cpp:576
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:26
cqsp::client::systems::SysProvinceInformation::IndustryTab
void IndustryTab()
Definition:
provincewindow.cpp:229
cqsp::client::systems::SysProvinceInformation::Init
void Init()
Definition:
provincewindow.cpp:59
cqsp::client::systems::SysUserInterface
Definition:
sysgui.h:23
cqsp::engine::Application
Definition:
application.h:48
cqsp::client::systems
Definition:
imguidebugger.cpp:19
sysgui.h
Generated on Tue Jan 13 2026 12:53:36 for Conquer Space by
1.9.2