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.
systurnsavewindow.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 <vector>
20
22#include "engine/application.h"
23
24namespace cqsp {
25namespace client {
26namespace systems {
27
29 public:
31
32 void Init();
33 void DoUI(int delta_time);
34 void DoUpdate(int delta_time);
35
36 void TogglePlayState();
37
38 private:
39 double last_tick = 0;
40 bool to_tick = false;
41 std::vector<int> tick_speeds {1000, 500, 333, 100, 50, 10, 1};
42 int tick_speed = tick_speeds.size() / 2;
43};
44} // namespace systems
45} // namespace client
46} // namespace cqsp
Definition: systurnsavewindow.h:28
SysTurnSaveWindow(cqsp::engine::Application &app)
Definition: systurnsavewindow.h:30
bool to_tick
Definition: systurnsavewindow.h:40
void Init()
Definition: systurnsavewindow.cpp:24
void DoUI(int delta_time)
Definition: systurnsavewindow.cpp:26
void DoUpdate(int delta_time)
Definition: systurnsavewindow.cpp:58
double last_tick
Definition: systurnsavewindow.h:39
void TogglePlayState()
Definition: systurnsavewindow.cpp:71
std::vector< int > tick_speeds
Definition: systurnsavewindow.h:41
int tick_speed
Definition: systurnsavewindow.h:42
Definition: application.h:47
When adding assets, it is extremely crucial that you read cqsp::asset::AssetLoader::LoadResources to ...
Definition: clientctx.h:21