14 struct list_head list;
17 unsigned char r, g, b;
20 #define list_to_planet(list_head) container_of((list_head), struct planet, list)
22 void init_planet(struct planet *p);
23 void create_planets(struct planet *p, int num, double total_mass,
25 void draw_planet(SDL_Surface *screen, struct planet *p, const struct camera *);
26 int gravitize_planets(struct planet *a, struct planet *b, const double time);
27 struct planet *merge_planets(struct planet *a, struct planet *b);
28 void move_planet(struct planet *p, const double time);
29 void print_planet(const struct planet *p);