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::client::systems::ConstructionMenu Class Reference

#include <constructionmenu.h>

Inheritance diagram for cqsp::client::systems::ConstructionMenu:
cqsp::client::systems::SysUserInterface

Public Member Functions

 ConstructionMenu (engine::Application &app)
 
void Init () override
 
void DoUI (int delta_time) override
 
void DoUpdate (int delta_time) override
 
- Public Member Functions inherited from cqsp::client::systems::SysUserInterface
 SysUserInterface (engine::Application &_app)
 
virtual ~SysUserInterface ()=default
 
virtual void OnTick ()
 
engine::ApplicationGetApp ()
 
core::UniverseGetUniverse ()
 
core::scripting::ScriptInterfaceGetScriptInterface ()
 
asset::AssetManagerGetAssetManager ()
 

Private Member Functions

bool RecipeCombo (const char *label, int &selected_idx, std::vector< std::pair< std::string, entt::entity > > &list)
 
void PerformConstruction (int count)
 

Private Attributes

std::array< char, 255 > search_text
 
bool constructing = false
 
int selected_index = 0
 
std::vector< std::pair< std::string, entt::entity > > recipe_list
 

Additional Inherited Members

- Public Attributes inherited from cqsp::client::systems::SysUserInterface
ImGuiWindowFlags window_flags = 0
 

Constructor & Destructor Documentation

◆ ConstructionMenu()

cqsp::client::systems::ConstructionMenu::ConstructionMenu ( engine::Application app)
inlineexplicit

Member Function Documentation

◆ DoUI()

void cqsp::client::systems::ConstructionMenu::DoUI ( int  delta_time)
overridevirtual

◆ DoUpdate()

void cqsp::client::systems::ConstructionMenu::DoUpdate ( int  delta_time)
overridevirtual

◆ Init()

void cqsp::client::systems::ConstructionMenu::Init ( )
overridevirtual

◆ PerformConstruction()

void cqsp::client::systems::ConstructionMenu::PerformConstruction ( int  count)
private

◆ RecipeCombo()

bool cqsp::client::systems::ConstructionMenu::RecipeCombo ( const char *  label,
int &  selected_idx,
std::vector< std::pair< std::string, entt::entity > > &  list 
)
private

Member Data Documentation

◆ constructing

bool cqsp::client::systems::ConstructionMenu::constructing = false
private

◆ recipe_list

std::vector<std::pair<std::string, entt::entity> > cqsp::client::systems::ConstructionMenu::recipe_list
private

◆ search_text

std::array<char, 255> cqsp::client::systems::ConstructionMenu::search_text
private

◆ selected_index

int cqsp::client::systems::ConstructionMenu::selected_index = 0
private

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