15 static constexpr char starsystemCategory[] =
"starsystem";
16 static std::shared_ptr<GameObject> createFromDump(
ObjectId id,
const std::string&
type );
17 static std::shared_ptr<StarSystem> createFromTemplate(
const std::string& name,
18 const std::string&
type);
20 StarSystem(
const std::string& name,
double radius_kkm );
22 virtual ~StarSystem();
24 bool queueCommand(std::shared_ptr<Command> command );
26 virtual void tick(
double delta_time_s,
double total_time_s )
final;
29 static nlohmann::json _refMapper(
const nlohmann::json &original_config,
30 const std::map<std::string, ObjectId>& id_refs);
The Command class.
Definition command.h:23
GameObject(const std::string &category, ObjectId id, const std::string &type)
Create a GameObject object.
Definition gameobject.cpp:38
const std::string & type() const
return the type (ship_xxx, station_xxx, planet_xxx...)
Definition gameobject.h:213