Antkeeper
0.0.1
|
World creation and manipulation functions. More...
Functions | |
void | cosmogenesis (::game &ctx) |
Creates the cosmos. More... | |
void | create_observer (::game &ctx) |
Creates the observer. More... | |
void | set_location (::game &ctx, double elevation, double latitude, double longitude) |
Sets the location of the observer. More... | |
void | set_time (::game &ctx, double t) |
Sets the current time. More... | |
void | set_time (::game &ctx, int year, int month, int day, int hour, int minute, double second) |
Sets the current time. More... | |
void | set_time_scale (::game &ctx, double scale) |
Sets rate at which time passes. More... | |
void | enter_ecoregion (::game &ctx, const ecoregion &ecoregion) |
Enters a ecoregion. More... | |
void | switch_scene (::game &ctx) |
World creation and manipulation functions.
void world::cosmogenesis | ( | ::game & | ctx | ) |
void world::create_observer | ( | ::game & | ctx | ) |
void world::set_location | ( | ::game & | ctx, |
double | elevation, | ||
double | latitude, | ||
double | longitude | ||
) |
void world::set_time | ( | ::game & | ctx, |
double | t | ||
) |
void world::set_time | ( | ::game & | ctx, |
int | year, | ||
int | month, | ||
int | day, | ||
int | hour, | ||
int | minute, | ||
double | second | ||
) |
Sets the current time.
ctx | Game context. |
year | Astronomical year numbering. 1 BC is 0 , 2 BC is -1 . |
month | Month number on [1, 12] . |
day | Day number on [1, 31] . |
hour | Hour number on [0, 23] . |
minute | Minute number on [0, 59] . |
second | Fractional second on [0.0, 60.0) . |
void world::set_time_scale | ( | ::game & | ctx, |
double | scale | ||
) |