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.
Public Member Functions | Private Member Functions | Private Attributes | List of all members
cqsp::scene::UniverseScene Class Reference

#include <universescene.h>

Inheritance diagram for cqsp::scene::UniverseScene:
cqsp::client::Scene cqsp::engine::Scene

Public Member Functions

 UniverseScene (cqsp::engine::Application &app)
 
 ~UniverseScene ()
 
void Init ()
 
void Update (float deltaTime)
 
void Ui (float deltaTime)
 
void Render (float deltaTime)
 
template<class T >
void AddUISystem ()
 
template<class T >
void AddRmlUiSystem ()
 
- Public Member Functions inherited from cqsp::client::Scene
 Scene (cqsp::engine::Application &app)
 
cqsp::common::UniverseGetUniverse ()
 
scripting::ScriptInterfaceGetScriptInterface ()
 
- Public Member Functions inherited from cqsp::engine::Scene
 Scene (Application &app)
 
 Scene ()
 
virtual ~Scene ()
 
ApplicationGetApp ()
 
cqsp::asset::AssetManagerGetAssetManager ()
 

Private Member Functions

void DoScreenshot ()
 Does the screenshot interface. More...
 
void ToggleTick ()
 

Private Attributes

cqsp::engine::Renderable sphere
 
cqsp::engine::Renderable sky
 
cqsp::engine::Renderable planetDisp
 
cqsp::engine::Renderable sun
 
float x = 0
 
float y = 0
 
double previous_mouseX
 
double previous_mouseY
 
entt::entity player
 
entt::entity selected_planet = entt::null
 
cqsp::client::systems::SysStarSystemRenderersystem_renderer
 
std::unique_ptr< cqsp::common::systems::simulation::Simulationsimulation
 
bool to_show_planet_window = false
 
bool view_mode = true
 
std::vector< std::unique_ptr< cqsp::client::systems::SysUserInterface > > user_interfaces
 
std::vector< std::unique_ptr< client::systems::SysRmlUiInterface > > documents
 
double last_tick = 0
 
std::array< int, 7 > tick_speeds {1000, 500, 333, 100, 50, 10, 1}
 
bool interp = true
 

Constructor & Destructor Documentation

◆ UniverseScene()

cqsp::scene::UniverseScene::UniverseScene ( cqsp::engine::Application app)
explicit

◆ ~UniverseScene()

cqsp::scene::UniverseScene::~UniverseScene ( )
inline

Member Function Documentation

◆ AddRmlUiSystem()

template<class T >
void cqsp::scene::UniverseScene::AddRmlUiSystem ( )
inline

◆ AddUISystem()

template<class T >
void cqsp::scene::UniverseScene::AddUISystem ( )
inline

◆ DoScreenshot()

void cqsp::scene::UniverseScene::DoScreenshot ( )
private

Does the screenshot interface.

◆ Init()

void cqsp::scene::UniverseScene::Init ( )
virtual

Implements cqsp::engine::Scene.

◆ Render()

void cqsp::scene::UniverseScene::Render ( float  deltaTime)
virtual

Implements cqsp::engine::Scene.

◆ ToggleTick()

void cqsp::scene::UniverseScene::ToggleTick ( )
private

◆ Ui()

void cqsp::scene::UniverseScene::Ui ( float  deltaTime)
virtual

Implements cqsp::engine::Scene.

◆ Update()

void cqsp::scene::UniverseScene::Update ( float  deltaTime)
virtual

Implements cqsp::engine::Scene.

Member Data Documentation

◆ documents

std::vector<std::unique_ptr<client::systems::SysRmlUiInterface> > cqsp::scene::UniverseScene::documents
private

◆ interp

bool cqsp::scene::UniverseScene::interp = true
private

◆ last_tick

double cqsp::scene::UniverseScene::last_tick = 0
private

◆ planetDisp

cqsp::engine::Renderable cqsp::scene::UniverseScene::planetDisp
private

◆ player

entt::entity cqsp::scene::UniverseScene::player
private

◆ previous_mouseX

double cqsp::scene::UniverseScene::previous_mouseX
private

◆ previous_mouseY

double cqsp::scene::UniverseScene::previous_mouseY
private

◆ selected_planet

entt::entity cqsp::scene::UniverseScene::selected_planet = entt::null
private

◆ simulation

std::unique_ptr<cqsp::common::systems::simulation::Simulation> cqsp::scene::UniverseScene::simulation
private

◆ sky

cqsp::engine::Renderable cqsp::scene::UniverseScene::sky
private

◆ sphere

cqsp::engine::Renderable cqsp::scene::UniverseScene::sphere
private

◆ sun

cqsp::engine::Renderable cqsp::scene::UniverseScene::sun
private

◆ system_renderer

cqsp::client::systems::SysStarSystemRenderer* cqsp::scene::UniverseScene::system_renderer
private

◆ tick_speeds

std::array<int, 7> cqsp::scene::UniverseScene::tick_speeds {1000, 500, 333, 100, 50, 10, 1}
private

◆ to_show_planet_window

bool cqsp::scene::UniverseScene::to_show_planet_window = false
private

◆ user_interfaces

std::vector<std::unique_ptr<cqsp::client::systems::SysUserInterface> > cqsp::scene::UniverseScene::user_interfaces
private

◆ view_mode

bool cqsp::scene::UniverseScene::view_mode = true
private

◆ x

float cqsp::scene::UniverseScene::x = 0
private

◆ y

float cqsp::scene::UniverseScene::y = 0
private

The documentation for this class was generated from the following files: