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-2023 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
(
cqsp::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
void
CityView
();
34
35
void
CityIndustryTabs
();
36
void
DemographicsTab
();
37
void
IndustryTab
();
38
void
SpacePortTab
();
39
void
InfrastructureTab
();
40
void
IndustryListWindow
();
41
42
template
<
typename
T>
43
void
IndustryTabGenericChild
(
const
std::string& tabname,
const
std::string& industryname,
const
ImVec2& size);
44
45
entt::entity
current_city
;
46
entt::entity
current_country
;
47
bool
market_information_panel
=
false
;
48
49
bool
visible
=
false
;
50
entt::entity
current_market
;
51
bool
city_factory_info
=
false
;
52
53
enum
ViewMode
{
COUNTRY_VIEW
,
CITY_VIEW
}
view_mode
= ViewMode::COUNTRY_VIEW;
54
};
55
56
}
// 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:47
cqsp::client::systems::SysProvinceInformation::visible
bool visible
Definition:
provincewindow.h:49
cqsp::client::systems::SysProvinceInformation::DoUI
void DoUI(int delta_time)
Definition:
provincewindow.cpp:44
cqsp::client::systems::SysProvinceInformation::current_city
entt::entity current_city
Definition:
provincewindow.h:45
cqsp::client::systems::SysProvinceInformation::IndustryListWindow
void IndustryListWindow()
Definition:
provincewindow.cpp:316
cqsp::client::systems::SysProvinceInformation::ProvinceView
void ProvinceView()
Definition:
provincewindow.cpp:77
cqsp::client::systems::SysProvinceInformation::current_market
entt::entity current_market
Definition:
provincewindow.h:50
cqsp::client::systems::SysProvinceInformation::ViewMode
ViewMode
Definition:
provincewindow.h:53
cqsp::client::systems::SysProvinceInformation::CITY_VIEW
@ CITY_VIEW
Definition:
provincewindow.h:53
cqsp::client::systems::SysProvinceInformation::COUNTRY_VIEW
@ COUNTRY_VIEW
Definition:
provincewindow.h:53
cqsp::client::systems::SysProvinceInformation::InfrastructureTab
void InfrastructureTab()
Definition:
provincewindow.cpp:304
cqsp::client::systems::SysProvinceInformation::SysProvinceInformation
SysProvinceInformation(cqsp::engine::Application &app)
Definition:
provincewindow.h:26
cqsp::client::systems::SysProvinceInformation::current_country
entt::entity current_country
Definition:
provincewindow.h:46
cqsp::client::systems::SysProvinceInformation::CityIndustryTabs
void CityIndustryTabs()
Definition:
provincewindow.cpp:148
cqsp::client::systems::SysProvinceInformation::DemographicsTab
void DemographicsTab()
Definition:
provincewindow.cpp:185
cqsp::client::systems::SysProvinceInformation::SpacePortTab
void SpacePortTab()
Definition:
provincewindow.cpp:259
cqsp::client::systems::SysProvinceInformation::city_factory_info
bool city_factory_info
Definition:
provincewindow.h:51
cqsp::client::systems::SysProvinceInformation::IndustryTabGenericChild
void IndustryTabGenericChild(const std::string &tabname, const std::string &industryname, const ImVec2 &size)
Definition:
provincewindow.cpp:334
cqsp::client::systems::SysProvinceInformation::DoUpdate
void DoUpdate(int delta_time)
Definition:
provincewindow.cpp:75
cqsp::client::systems::SysProvinceInformation::CityView
void CityView()
Definition:
provincewindow.cpp:103
cqsp::client::systems::SysProvinceInformation::view_mode
enum cqsp::client::systems::SysProvinceInformation::ViewMode view_mode
cqsp::client::systems::SysProvinceInformation::IndustryTab
void IndustryTab()
Definition:
provincewindow.cpp:215
cqsp::client::systems::SysProvinceInformation::Init
void Init()
Definition:
provincewindow.cpp:42
cqsp::client::systems::SysUserInterface
Definition:
sysgui.h:25
cqsp::engine::Application
Definition:
application.h:47
cqsp::client::systems
Definition:
goodviewer.h:21
sysgui.h
Generated on Tue Nov 19 2024 02:58:49 for Conquer Space by
1.9.2