From b184798e76a1306f7145a111cabf2d1754d2dd96 Mon Sep 17 00:00:00 2001 From: Matt Kohls Date: Mon, 14 Jan 2019 00:48:11 -0500 Subject: Adding more comments and fixing some formatting --- fungi.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'fungi.cpp') diff --git a/fungi.cpp b/fungi.cpp index fdd2634..097ca74 100644 --- a/fungi.cpp +++ b/fungi.cpp @@ -112,10 +112,22 @@ public: */ Color getColor() const { return color; } + /** + * Adds growth to the fungus + * @param val Amount to grow the fungus + */ void addGrowth(uint8_t val) { growthPoints += val; } + /** + * Gets the current growth of the fungus + * @return Current growth points of fungus + */ uint8_t getGrowthPoints() const { return growthPoints; } + /** + * Gets the current health of the fungus + * @return Current health points of the fungus + */ uint8_t getHP() const { return hp; } }; @@ -291,7 +303,7 @@ public: * Get list of living fungus * @return Vector of fungus in the dish */ - std::vector< Fungus* > & getPopulation() { return population; } + std::vector & getPopulation() { return population; } }; /* -- cgit v1.2.3