]> git.itanic.dy.fi Git - sdl-planets/blobdiff - planet.h
planet: Add tree statistics
[sdl-planets] / planet.h
index 0673c87bb6267ec84c39db7573835e95c18a60bc..89f232ac3d706dcc9d7f924e73f1434c40d7b5d5 100644 (file)
--- a/planet.h
+++ b/planet.h
@@ -17,6 +17,10 @@ struct planet {
        double mass;
        float radius;
        unsigned char r, g, b;
+
+       /* info about the planets in sub branches */
+       float tree_area;        /* total area occupied by the tree */
+       double tree_mass;       /* total mass occupied by the tree */
 };
 
 struct planet_search_iterator {