#include <world.hpp>
Definition at line 114 of file world.hpp.
◆ World()
◆ ~World()
◆ do_tick()
◆ fire_special_event()
void World::fire_special_event |
( |
const std::string_view |
event_ref_name, |
|
|
const std::string_view |
nation_ref_name, |
|
|
const std::string_view |
other_nation_ref_name |
|
) |
| |
◆ get_day()
int World::get_day |
( |
void |
| ) |
const |
|
inline |
◆ get_dist_from_equator()
float World::get_dist_from_equator |
( |
float |
y | ) |
const |
|
inline |
Get the dist from the equator in respect to Y.
- Parameters
-
y | Position to get distance from |
- Returns
- float
Definition at line 186 of file world.hpp.
◆ get_id()
template<typename T >
T::Id World::get_id |
( |
const T & |
obj | ) |
const |
|
inline |
Get the id of an object, this is a template for all types except for tiles and locally-stored types (we can do this because we can obtain the list from the type) with get_list helper functions. Please do not store the value of this function on a local variable because said variable could potentially get invalidated!
- Template Parameters
-
- Parameters
-
obj | Reference to the object |
- Returns
- TId Id of the object
Definition at line 179 of file world.hpp.
◆ get_instance()
static World& World::get_instance |
( |
| ) |
|
|
inlinestatic |
◆ get_month()
int World::get_month |
( |
void |
| ) |
const |
|
inline |
◆ get_relation() [1/2]
◆ get_relation() [2/2]
◆ get_year()
int World::get_year |
( |
void |
| ) |
const |
|
inline |
◆ init_lua()
◆ insert()
template<typename T >
void World::insert |
( |
T & |
ptr | ) |
|
|
inline |
◆ load_initial()
void World::load_initial |
( |
| ) |
|
◆ load_mod()
◆ operator=()
◆ remove()
template<typename T >
void World::remove |
( |
T & |
ptr | ) |
|
|
inline |
◆ economy_state
◆ height
◆ inbox_mutex
std::mutex World::inbox_mutex |
◆ list_mutex
std::mutex World::list_mutex |
◆ lua
◆ needs_to_sync
bool World::needs_to_sync = false |
Used to signal the lua scripts of invalid operations (eg. adding a country midgame)
Definition at line 224 of file world.hpp.
◆ profiler
◆ province_manager
◆ relations
◆ taken_decisions
◆ ticks_per_month
constexpr static unsigned int World::ticks_per_month = 30 |
|
staticconstexpr |
◆ tiles
◆ time
◆ unit_manager
◆ width
◆ world_mutex
std::mutex World::world_mutex |
The documentation for this class was generated from the following files: