]> git.localhorst.tv Git - blobs.git/blobdiff - src/creature/Composition.hpp
ingest forgein materials
[blobs.git] / src / creature / Composition.hpp
index c0623348eb8b0168b0232640b68ec73ae0ab0997..da669923972a340d8c68a4219014cad105648256 100644 (file)
@@ -1,10 +1,15 @@
 #ifndef BLOBLS_CREATURE_COMPOSITION_HPP_
 #define BLOBLS_CREATURE_COMPOSITION_HPP_
 
+#include "../world/Set.hpp"
+
 #include <vector>
 
 
 namespace blobs {
+namespace world {
+       class Resource;
+}
 namespace creature {
 
 class Composition {
@@ -31,6 +36,8 @@ public:
        void Add(int res, double amount);
        bool Has(int res) const noexcept;
        double Get(int res) const noexcept;
+       double Proportion(int res) const noexcept;
+       double Compatibility(const world::Set<world::Resource> &, int res) const noexcept;
        double TotalMass() const noexcept { return total_mass; }
 
 public: