From 9fe9b66c3868690ca87fb85f99d9a5d53e21eca5 Mon Sep 17 00:00:00 2001
From: Arian Ubuntu <ariandervishaj@icloud.com>
Date: Wed, 20 Dec 2023 10:56:27 +0100
Subject: [PATCH] Renommer type "planet_t" par "celestial_body_t"

---
 practical_work/planets/skeleton/planet/planet.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/practical_work/planets/skeleton/planet/planet.h b/practical_work/planets/skeleton/planet/planet.h
index f21984e..15ccce7 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);
-- 
GitLab