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.
Functions
cqsp::common::systems::actions Namespace Reference

Functions

entt::entity OrderConstructionFactory (cqsp::common::Universe &universe, entt::entity city, entt::entity market, entt::entity recipe, int productivity, entt::entity builder)
 Will charge the entity builder the amount needed to construct the factory/building. You'll have to find a organization that can construct it though. More...
 
entt::entity CreateFactory (cqsp::common::Universe &universe, entt::entity city, entt::entity recipe, int productivity)
 Creates a factory from thin air More...
 
cqsp::common::components::ResourceLedger GetFactoryCost (cqsp::common::Universe &universe, entt::entity city, entt::entity recipe, int productivity)
 
entt::entity CreateCommercialArea (cqsp::common::Universe &universe, entt::entity city)
 
entt::entity CreateShip (cqsp::common::Universe &universe, entt::entity civ, const glm::vec3 &orbit, entt::entity starsystem)
 
entt::entity CreateShip (cqsp::common::Universe &universe, entt::entity civ, entt::entity orbit, entt::entity starsystem)
 
entt::entity CreateShip (cqsp::common::Universe &universe, entt::entity fleetEnt, entt::entity starsystemEnt, const glm::vec3 &orbit, const std::string &shipName)
 creates a ship with a name and assigns it to a fleet and solar system More...
 
entt::entity CreateShip (cqsp::common::Universe &universe, entt::entity fleetEnt, entt::entity starsystemEnt, entt::entity orbitEnt, const std::string &shipName)
 
entt::entity LaunchShip (Universe &universe, components::types::Orbit &orbit)
 

Function Documentation

◆ CreateCommercialArea()

entt::entity cqsp::common::systems::actions::CreateCommercialArea ( cqsp::common::Universe universe,
entt::entity  city 
)

◆ CreateFactory()

entt::entity cqsp::common::systems::actions::CreateFactory ( cqsp::common::Universe universe,
entt::entity  city,
entt::entity  recipe,
int  productivity 
)

Creates a factory from thin air

Parameters
universe
city
recipe
productivity
Returns
The factory entity created

◆ CreateShip() [1/4]

entt::entity cqsp::common::systems::actions::CreateShip ( cqsp::common::Universe universe,
entt::entity  civ,
const glm::vec3 &  orbit,
entt::entity  starsystem 
)

◆ CreateShip() [2/4]

entt::entity cqsp::common::systems::actions::CreateShip ( cqsp::common::Universe universe,
entt::entity  civ,
entt::entity  orbit,
entt::entity  starsystem 
)

◆ CreateShip() [3/4]

entt::entity cqsp::common::systems::actions::CreateShip ( cqsp::common::Universe universe,
entt::entity  fleetEnt,
entt::entity  starsystemEnt,
const glm::vec3 &  orbit,
const std::string &  shipName 
)

creates a ship with a name and assigns it to a fleet and solar system

Parameters
universeThe registry for the entities
fleetEntThe fleet to be used
starsystemEntThe star system where the ship is created in
Returns
The ship that is created

◆ CreateShip() [4/4]

entt::entity cqsp::common::systems::actions::CreateShip ( cqsp::common::Universe universe,
entt::entity  fleetEnt,
entt::entity  starsystemEnt,
entt::entity  orbitEnt,
const std::string &  shipName 
)

◆ GetFactoryCost()

cqsp::common::components::ResourceLedger cqsp::common::systems::actions::GetFactoryCost ( cqsp::common::Universe universe,
entt::entity  city,
entt::entity  recipe,
int  productivity 
)

◆ LaunchShip()

entt::entity cqsp::common::systems::actions::LaunchShip ( Universe universe,
components::types::Orbit orbit 
)

◆ OrderConstructionFactory()

entt::entity cqsp::common::systems::actions::OrderConstructionFactory ( cqsp::common::Universe universe,
entt::entity  city,
entt::entity  market,
entt::entity  recipe,
int  productivity,
entt::entity  builder 
)

Will charge the entity builder the amount needed to construct the factory/building. You'll have to find a organization that can construct it though.

Parameters
universe
city
recipe
productivity
builder
Returns
The factory entity created, entt::null if it's not possible.