API of the Gravix2 Game. More...
Go to the source code of this file.
Classes | |
struct | GrvxMissileLaunch |
Settings of a scheduled missile launch. More... | |
struct | GrvxMissileObservation |
Observation of a missile. More... | |
Typedefs | |
typedef struct GrvxGame * | GrvxGameHandle |
Handle to a game. More... | |
Functions | |
GRVX_EXPORT int32_t | grvx_rnd_init_planets (GrvxPlanetsHandle planets, uint32_t *seed, double min_dist) |
Initializes planets randomly. More... | |
GRVX_EXPORT GrvxGameHandle | grvx_init_game (GrvxPlanetsHandle planets) |
Initializes a new game from a set of planets. More... | |
GRVX_EXPORT void | grvx_delete_game (GrvxGameHandle handle) |
Deletes a game instance. More... | |
GRVX_EXPORT int32_t | grvx_request_launch (GrvxGameHandle game, uint32_t planet_id, struct GrvxMissileLaunch *missile, double dt) |
Requests a missile launch. More... | |
GRVX_EXPORT struct GrvxMissileObservation * | grvx_observe_or_tick (GrvxGameHandle game, uint32_t *t) |
Returns a new observation or advances time. More... | |
API of the Gravix2 Game.
See module Game for a detailed description.