diff --git a/practical_work/planets/skeleton/planet/planet.h b/practical_work/planets/skeleton/planet/planet.h index f21984e64616f0d91d3a502c8b6273f49556b172..15ccce731146dd4a83cfa999c4eb6ec60f7bf7c0 100644 --- a/practical_work/planets/skeleton/planet/planet.h +++ b/practical_work/planets/skeleton/planet/planet.h @@ -4,23 +4,23 @@ #include "../vec2/vec2.h" #include "../gfx/gfx.h" -typedef struct _planet +typedef struct _celestial_body { double mass; vec2 pos; // x(t) vec2 prec_pos; // x(t - dt) -} planet_t; +} celestial_body_t; typedef struct _system { - planet_t star; // ex. The sun + celestial_body_t star; // ex. The sun uint32_t nb_planets; // The number of orbiting planets - planet_t *planets; // An array of orbiting planets + celestial_body_t *planets; // An array of orbiting planets } system_t; // Those function are not mandatory to implement, // it's rather a hint of what you should have. -planet_t create_planet(double mass, vec2 pos); +celestial_body_t create_planet(double mass, vec2 pos); system_t create_system(double delta_t); void show_system(struct gfx_context_t *ctxt, system_t *system); void update_system(system_t *system, double delta_t);