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 | Public Attributes | Private Attributes | List of all members
cqsp::common::Universe Class Reference

#include <universe.h>

Inheritance diagram for cqsp::common::Universe:

Public Member Functions

 Universe (std::string uuid)
 
 Universe ()
 
void EnableTick ()
 
void DisableTick ()
 
bool ToTick ()
 
void ToggleTick ()
 
int GetDate ()
 

Public Attributes

components::StarDate date
 
std::map< std::string, entt::entity > goods
 
std::vector< entt::entity > consumergoods
 
std::map< std::string, entt::entity > recipes
 
std::map< std::string, entt::entity > terrain_data
 
std::map< std::string, systems::names::NameGeneratorname_generators
 
std::map< std::string, entt::entity > fields
 
std::map< std::string, entt::entity > technologies
 
std::map< std::string, entt::entity > planets
 
std::map< std::string, entt::entity > time_zones
 
std::map< std::string, entt::entity > countries
 
std::map< std::string, entt::entity > provinces
 
std::map< std::string, entt::entity > cities
 
std::map< int, entt::entity > province_colors
 
std::map< entt::entity, int > colors_province
 
entt::entity sun
 
std::unique_ptr< cqsp::common::util::IRandomrandom
 
std::string uuid
 
double tick_fraction = 0
 What is the current fraction of the wait of the tick we are processing More...
 

Private Attributes

bool to_tick = false
 

Constructor & Destructor Documentation

◆ Universe() [1/2]

cqsp::common::Universe::Universe ( std::string  uuid)
explicit

◆ Universe() [2/2]

cqsp::common::Universe::Universe ( )

Member Function Documentation

◆ DisableTick()

void cqsp::common::Universe::DisableTick ( )
inline

◆ EnableTick()

void cqsp::common::Universe::EnableTick ( )
inline

◆ GetDate()

int cqsp::common::Universe::GetDate ( )
inline

◆ ToggleTick()

void cqsp::common::Universe::ToggleTick ( )
inline

◆ ToTick()

bool cqsp::common::Universe::ToTick ( )
inline

Member Data Documentation

◆ cities

std::map<std::string, entt::entity> cqsp::common::Universe::cities

◆ colors_province

std::map<entt::entity, int> cqsp::common::Universe::colors_province

◆ consumergoods

std::vector<entt::entity> cqsp::common::Universe::consumergoods

◆ countries

std::map<std::string, entt::entity> cqsp::common::Universe::countries

◆ date

components::StarDate cqsp::common::Universe::date

◆ fields

std::map<std::string, entt::entity> cqsp::common::Universe::fields

◆ goods

std::map<std::string, entt::entity> cqsp::common::Universe::goods

◆ name_generators

std::map<std::string, systems::names::NameGenerator> cqsp::common::Universe::name_generators

◆ planets

std::map<std::string, entt::entity> cqsp::common::Universe::planets

◆ province_colors

std::map<int, entt::entity> cqsp::common::Universe::province_colors

◆ provinces

std::map<std::string, entt::entity> cqsp::common::Universe::provinces

◆ random

std::unique_ptr<cqsp::common::util::IRandom> cqsp::common::Universe::random

◆ recipes

std::map<std::string, entt::entity> cqsp::common::Universe::recipes

◆ sun

entt::entity cqsp::common::Universe::sun

◆ technologies

std::map<std::string, entt::entity> cqsp::common::Universe::technologies

◆ terrain_data

std::map<std::string, entt::entity> cqsp::common::Universe::terrain_data

◆ tick_fraction

double cqsp::common::Universe::tick_fraction = 0

What is the current fraction of the wait of the tick we are processing

◆ time_zones

std::map<std::string, entt::entity> cqsp::common::Universe::time_zones

◆ to_tick

bool cqsp::common::Universe::to_tick = false
private

◆ uuid

std::string cqsp::common::Universe::uuid

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