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.
spaceport.h
Go to the documentation of this file.
1/* Conquer Space
2 * Copyright (C) 2021-2025 Conquer Space
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17#pragma once
18
19#include <map>
20#include <queue>
21
22#include <entt/entt.hpp>
23
26 entt::entity good;
27 double amount;
29};
30
39class SpacePort {
40 // The map is target, and queue
41 // The entt entity must have an orbit, and we must be able to rendezvous to that entity
42 // So this is the list of goods that it wants to deliver to different places
43 std::map<entt::entity, std::priority_queue<TransportedGood>> deliveries;
44 std::vector<std::pair<entt::entity, double>> requests;
47};
48} // namespace cqsp::common::components::infrastructure
std::vector< std::pair< entt::entity, double > > requests
Definition: spaceport.h:44
std::map< entt::entity, std::priority_queue< TransportedGood > > deliveries
Definition: spaceport.h:43
double launch_cadance
Definition: spaceport.h:45
entt::entity good
Definition: spaceport.h:26
Definition: infrastructure.h:24