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 Attributes | List of all members
cqsp::common::systems::simulation::Simulation Class Reference

Main simulation of game. /summary> To add a simulation in the game, add a class extending from cqsp::common::systems::ISimulationSystem in the constructor. More...

#include <simulation.h>

Public Member Functions

 Simulation (cqsp::common::Game &game)
 
void tick ()
 1 game tick, runs every single system that is added. More...
 
template<class T >
void AddSystem ()
 

Private Attributes

cqsp::common::Gamem_game
 
std::vector< std::unique_ptr< cqsp::common::systems::ISimulationSystem > > system_list
 Holds all the systems. More...
 
cqsp::common::Universem_universe
 

Detailed Description

Main simulation of game. /summary> To add a simulation in the game, add a class extending from cqsp::common::systems::ISimulationSystem in the constructor.

AddSystem<SimSystemName>();

Constructor & Destructor Documentation

◆ Simulation()

Simulation::Simulation ( cqsp::common::Game game)
explicit

Member Function Documentation

◆ AddSystem()

template<class T >
void cqsp::common::systems::simulation::Simulation::AddSystem ( )
inline

◆ tick()

void Simulation::tick ( )

1 game tick, runs every single system that is added.

Member Data Documentation

◆ m_game

cqsp::common::Game& cqsp::common::systems::simulation::Simulation::m_game
private

◆ m_universe

cqsp::common::Universe& cqsp::common::systems::simulation::Simulation::m_universe
private

◆ system_list

std::vector<std::unique_ptr<cqsp::common::systems::ISimulationSystem> > cqsp::common::systems::simulation::Simulation::system_list
private

Holds all the systems.


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