X-Git-Url: http://git.localhorst.tv/?p=blobs.git;a=blobdiff_plain;f=src%2Fcreature%2FComposition.hpp;h=da669923972a340d8c68a4219014cad105648256;hp=c0623348eb8b0168b0232640b68ec73ae0ab0997;hb=c49dd02dfabb123e0c6c4b49f761ce6578dfc464;hpb=1f8fe0fd81053821f26787e9809cd1a13f747819 diff --git a/src/creature/Composition.hpp b/src/creature/Composition.hpp index c062334..da66992 100644 --- a/src/creature/Composition.hpp +++ b/src/creature/Composition.hpp @@ -1,10 +1,15 @@ #ifndef BLOBLS_CREATURE_COMPOSITION_HPP_ #define BLOBLS_CREATURE_COMPOSITION_HPP_ +#include "../world/Set.hpp" + #include 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 &, int res) const noexcept; double TotalMass() const noexcept { return total_mass; } public: