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

#include <mainmenuscene.h>

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

Classes

class  EventListener
 

Public Member Functions

 MainMenuScene (cqsp::engine::Application &app)
 
 ~MainMenuScene ()
 
void Init ()
 
void Update (float deltaTime)
 
void Ui (float deltaTime)
 
void Render (float deltaTime)
 
- 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 ModWindow ()
 
void ShuffleFileList ()
 
void SetMainMenuImage (const std::string &file)
 
void NextImage ()
 

Private Attributes

Rml::ElementDocument * main_menu
 
client::SettingsWindow settings_window
 
client::CreditsWindow credits_window
 
client::LoadGameWindow load_game_window
 
cqsp::scene::MainMenuScene::EventListener listener
 
bool is_options_visible = false
 
bool last_options_visible = false
 
std::vector< std::string > file_list
 
int index
 
double last_switch = 0
 
const float switch_time = 60
 

Constructor & Destructor Documentation

◆ MainMenuScene()

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

◆ ~MainMenuScene()

cqsp::scene::MainMenuScene::~MainMenuScene ( )

Member Function Documentation

◆ Init()

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

Implements cqsp::engine::Scene.

◆ ModWindow()

void cqsp::scene::MainMenuScene::ModWindow ( )
private

◆ NextImage()

void cqsp::scene::MainMenuScene::NextImage ( )
private

◆ Render()

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

Implements cqsp::engine::Scene.

◆ SetMainMenuImage()

void cqsp::scene::MainMenuScene::SetMainMenuImage ( const std::string &  file)
private

◆ ShuffleFileList()

void cqsp::scene::MainMenuScene::ShuffleFileList ( )
private

◆ Ui()

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

Implements cqsp::engine::Scene.

◆ Update()

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

Implements cqsp::engine::Scene.

Member Data Documentation

◆ credits_window

client::CreditsWindow cqsp::scene::MainMenuScene::credits_window
private

◆ file_list

std::vector<std::string> cqsp::scene::MainMenuScene::file_list
private

◆ index

int cqsp::scene::MainMenuScene::index
private

◆ is_options_visible

bool cqsp::scene::MainMenuScene::is_options_visible = false
private

◆ last_options_visible

bool cqsp::scene::MainMenuScene::last_options_visible = false
private

◆ last_switch

double cqsp::scene::MainMenuScene::last_switch = 0
private

◆ listener

cqsp::scene::MainMenuScene::EventListener cqsp::scene::MainMenuScene::listener
private

◆ load_game_window

client::LoadGameWindow cqsp::scene::MainMenuScene::load_game_window
private

◆ main_menu

Rml::ElementDocument* cqsp::scene::MainMenuScene::main_menu
private

◆ settings_window

client::SettingsWindow cqsp::scene::MainMenuScene::settings_window
private

◆ switch_time

const float cqsp::scene::MainMenuScene::switch_time = 60
private

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