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::SysRecipeViewer Class Reference

#include <recipeviewer.h>

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

Public Member Functions

 SysRecipeViewer (engine::Application &app)
 
void Init ()
 
void DoUI (int delta_time)
 
void DoUpdate (int delta_time)
 
- 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

void RecipeViewerRight ()
 
void RecipeHeader ()
 
void OutputSection (core::components::Recipe &recipe, const std::vector< std::string > &good_list)
 
double LaborSection (core::components::Recipe &recipe, const std::vector< std::string > &job_list)
 
void ProfitAnalysis (const core::components::Recipe &recipe, double total_job_cost)
 
void ConstructionCostSection (const std::vector< std::string > &good_list)
 
void ResetSelection ()
 
void SaveRecipes ()
 
void InitializeRecipeFiles ()
 
void CreateRecipe ()
 

Private Attributes

entt::entity selected_recipe = entt::null
 
std::array< char, 255 > search_text
 
float expected_production
 
const ImVec4 id_copy_color = ImVec4(0.921568627f, 0.392156863f, 0.203921569f, 1.f)
 
int new_input_good_idx = 0
 
int new_capital_good_idx = 0
 
int new_labor_job_idx = 0
 
int new_output_good_idx = 0
 
int new_construction_good_idx = 0
 
int new_zoning_idx = 0
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ SysRecipeViewer()

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

Member Function Documentation

◆ ConstructionCostSection()

void cqsp::client::systems::SysRecipeViewer::ConstructionCostSection ( const std::vector< std::string > &  good_list)
private

◆ CreateRecipe()

void cqsp::client::systems::SysRecipeViewer::CreateRecipe ( )
private

◆ DoUI()

void cqsp::client::systems::SysRecipeViewer::DoUI ( int  delta_time)
virtual

◆ DoUpdate()

void cqsp::client::systems::SysRecipeViewer::DoUpdate ( int  delta_time)
virtual

◆ Init()

void cqsp::client::systems::SysRecipeViewer::Init ( )
virtual

◆ InitializeRecipeFiles()

void cqsp::client::systems::SysRecipeViewer::InitializeRecipeFiles ( )
private

◆ LaborSection()

double cqsp::client::systems::SysRecipeViewer::LaborSection ( core::components::Recipe recipe,
const std::vector< std::string > &  job_list 
)
private

◆ OutputSection()

void cqsp::client::systems::SysRecipeViewer::OutputSection ( core::components::Recipe recipe,
const std::vector< std::string > &  good_list 
)
private

◆ ProfitAnalysis()

void cqsp::client::systems::SysRecipeViewer::ProfitAnalysis ( const core::components::Recipe recipe,
double  total_job_cost 
)
private

◆ RecipeHeader()

void cqsp::client::systems::SysRecipeViewer::RecipeHeader ( )
private

◆ RecipeViewerRight()

void cqsp::client::systems::SysRecipeViewer::RecipeViewerRight ( )
private

◆ ResetSelection()

void cqsp::client::systems::SysRecipeViewer::ResetSelection ( )
private

◆ SaveRecipes()

void cqsp::client::systems::SysRecipeViewer::SaveRecipes ( )
private

Member Data Documentation

◆ expected_production

float cqsp::client::systems::SysRecipeViewer::expected_production
private

◆ id_copy_color

const ImVec4 cqsp::client::systems::SysRecipeViewer::id_copy_color = ImVec4(0.921568627f, 0.392156863f, 0.203921569f, 1.f)
private

◆ new_capital_good_idx

int cqsp::client::systems::SysRecipeViewer::new_capital_good_idx = 0
private

◆ new_construction_good_idx

int cqsp::client::systems::SysRecipeViewer::new_construction_good_idx = 0
private

◆ new_input_good_idx

int cqsp::client::systems::SysRecipeViewer::new_input_good_idx = 0
private

◆ new_labor_job_idx

int cqsp::client::systems::SysRecipeViewer::new_labor_job_idx = 0
private

◆ new_output_good_idx

int cqsp::client::systems::SysRecipeViewer::new_output_good_idx = 0
private

◆ new_zoning_idx

int cqsp::client::systems::SysRecipeViewer::new_zoning_idx = 0
private

◆ search_text

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

◆ selected_recipe

entt::entity cqsp::client::systems::SysRecipeViewer::selected_recipe = entt::null
private

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