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

#include <sysmarketreset.h>

Inheritance diagram for cqsp::common::systems::SysMarketReset:
cqsp::common::systems::ISimulationSystem

Public Member Functions

 SysMarketReset (Game &game)
 
void DoSystem () override
 
int Interval () override
 
- Public Member Functions inherited from cqsp::common::systems::ISimulationSystem
 ISimulationSystem (Game &game)
 
virtual ~ISimulationSystem ()=default
 
virtual void Init ()
 

Additional Inherited Members

- Protected Member Functions inherited from cqsp::common::systems::ISimulationSystem
GameGetGame ()
 
UniverseGetUniverse ()
 

Detailed Description

Resets the market for this tick's market loop. Ideally we do not have this system at all, because memory clears are very inefficient So we will need to find a way to more dynamically reset resource ledgers on the fly.

Constructor & Destructor Documentation

◆ SysMarketReset()

cqsp::common::systems::SysMarketReset::SysMarketReset ( Game game)
inlineexplicit

Member Function Documentation

◆ DoSystem()

void cqsp::common::systems::SysMarketReset::DoSystem ( )
overridevirtual

◆ Interval()

int cqsp::common::systems::SysMarketReset::Interval ( )
inlineoverridevirtual

How often is DoSystem is run. It will be run every n number of ticks when the tick becomes a multiple of the number below. The default is 24

Reimplemented from cqsp::common::systems::ISimulationSystem.


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