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.
turnsavewindow.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
22
25 public:
28 void Update(double delta_time) override;
29 void OpenDocument() override;
30
31 private:
32 std::string file_name = "../data/core/gui/mainscene/turnsavewindow.rml";
33 Rml::ElementDocument* document;
34
36 public:
38 void ProcessEvent(Rml::Event& event);
40 } listener {&GetUniverse()};
41
43
44 Rml::Element* time_element;
45 Rml::Element* pause_element;
46 Rml::Element* speed_element;
47};
48} // namespace cqsp::client::systems::rmlui
common::Universe * universe
Definition: turnsavewindow.h:39
void ProcessEvent(Rml::Event &event)
Definition: turnsavewindow.cpp:65
EventListener(common::Universe *universe)
Definition: turnsavewindow.h:37
Definition: turnsavewindow.h:24
Rml::Element * pause_element
Definition: turnsavewindow.h:45
bool is_paused
Definition: turnsavewindow.h:42
void Update(double delta_time) override
Definition: turnsavewindow.cpp:27
~TurnSaveWindow()
Definition: turnsavewindow.cpp:22
Rml::ElementDocument * document
Definition: turnsavewindow.h:33
void OpenDocument() override
Definition: turnsavewindow.cpp:50
cqsp::client::systems::rmlui::TurnSaveWindow::EventListener Rml::EventListener GetUniverse()}
Rml::Element * time_element
Definition: turnsavewindow.h:44
TurnSaveWindow(cqsp::engine::Application &_app)
Definition: turnsavewindow.h:26
Rml::Element * speed_element
Definition: turnsavewindow.h:46
std::string file_name
Definition: turnsavewindow.h:32
Definition: universe.h:32
Definition: application.h:47
Definition: turnsavewindow.cpp:21
EventListener(common::Universe *universe)
Definition: turnsavewindow.h:1