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
22
23namespace cqsp::client::systems {
25 public:
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 LaunchTab();
40 void DockedTab();
41 void InfrastructureTab();
42 void IndustryListWindow();
43
44 template <typename T>
45 void IndustryTabGenericChild(const std::string& tabname, const std::string& industryname, const ImVec2& size);
46
47 entt::entity current_city;
48 entt::entity current_country;
50
51 bool visible = false;
52 entt::entity current_market;
53 entt::entity selected_ship;
54 bool city_factory_info = false;
55
56 enum ViewMode { COUNTRY_VIEW, CITY_VIEW } view_mode = ViewMode::COUNTRY_VIEW;
57};
58
59} // namespace cqsp::client::systems
Definition: provincewindow.h:24
bool market_information_panel
Definition: provincewindow.h:49
bool visible
Definition: provincewindow.h:51
void DoUI(int delta_time)
Definition: provincewindow.cpp:47
entt::entity current_city
Definition: provincewindow.h:47
void IndustryListWindow()
Definition: provincewindow.cpp:318
void DockedTab()
Definition: provincewindow.cpp:433
void ProvinceView()
Definition: provincewindow.cpp:80
entt::entity current_market
Definition: provincewindow.h:52
ViewMode
Definition: provincewindow.h:56
@ CITY_VIEW
Definition: provincewindow.h:56
@ COUNTRY_VIEW
Definition: provincewindow.h:56
void InfrastructureTab()
Definition: provincewindow.cpp:306
SysProvinceInformation(cqsp::engine::Application &app)
Definition: provincewindow.h:26
entt::entity current_country
Definition: provincewindow.h:48
void CityIndustryTabs()
Definition: provincewindow.cpp:166
void LaunchTab()
Definition: provincewindow.cpp:388
void DemographicsTab()
Definition: provincewindow.cpp:208
void SpacePortTab()
Definition: provincewindow.cpp:292
bool city_factory_info
Definition: provincewindow.h:54
entt::entity selected_ship
Definition: provincewindow.h:53
void IndustryTabGenericChild(const std::string &tabname, const std::string &industryname, const ImVec2 &size)
Definition: provincewindow.cpp:336
void DoUpdate(int delta_time)
Definition: provincewindow.cpp:78
void CityView()
Definition: provincewindow.cpp:119
enum cqsp::client::systems::SysProvinceInformation::ViewMode view_mode
void IndustryTab()
Definition: provincewindow.cpp:248
void Init()
Definition: provincewindow.cpp:45
Definition: application.h:49
Definition: goodviewer.h:21