]> git.localhorst.tv Git - blobs.git/blobdiff - src/world/Resource.hpp
randomize creature properties a bit
[blobs.git] / src / world / Resource.hpp
index 5dd383442952b53e7ee9783288840c1ad1d534dd..492a7f81f1d21a5a4cb90cbf89cfefed02a2760f 100644 (file)
@@ -12,7 +12,19 @@ struct Resource {
        std::string name;
        std::string label;
 
-       int id;
+       double density = 1.0;
+
+       int id = -1;
+
+       enum State {
+               SOLID = 0,
+               LIQUID = 1,
+               GAS = 2,
+               PLASMA = 3,
+       };
+       // the resource's natural state
+       // TODO: something about temperature and pressure and stuff
+       int state = SOLID;
 
 };