aboutsummaryrefslogtreecommitdiffstats
path: root/fungi.cpp
diff options
context:
space:
mode:
authorMatt Kohls <mattkohls13@gmail.com>2018-12-05 21:16:27 -0500
committerMatt Kohls <mattkohls13@gmail.com>2018-12-05 21:16:27 -0500
commit34f7525f311f6865b234e357de030d73f6658458 (patch)
treef40fbb4ac6b1fcd4defc9bbc3a10c932d117dc4c /fungi.cpp
parentc78aadb117d3796e2c0e59949bb881ed9839d3cc (diff)
downloadfungi-34f7525f311f6865b234e357de030d73f6658458.tar.gz
fungi-34f7525f311f6865b234e357de030d73f6658458.tar.bz2
fungi-34f7525f311f6865b234e357de030d73f6658458.zip
Adding comments
Diffstat (limited to 'fungi.cpp')
-rw-r--r--fungi.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/fungi.cpp b/fungi.cpp
index bb3a4b4..3aa70c0 100644
--- a/fungi.cpp
+++ b/fungi.cpp
@@ -88,8 +88,16 @@ public:
~Fungus() {}
+ /**
+ * Get the location of the fungus
+ * @return The location of the fungus
+ */
Location getLocation() const { return local; }
+ /**
+ * Get the color of the fungus
+ * @return The color of the fungus
+ */
Color getColor() const { return color; }
};
@@ -115,7 +123,8 @@ private:
/**
* Brings up all the SDL objects we will need to draw our window
- *
+ * @param winpos The position we want for the window
+ * @param winsize The size we want for the window
*/
void init(const Window_Pos& winpos, const Window_Size& winsize) {
if (SDL_Init(SDL_INIT_EVERYTHING) != 0){
@@ -146,7 +155,7 @@ private:
/**
* Draws a fungus on the screen
- *
+ * @param f The fungus we want to draw
*/
void drawFungus(const Fungus& f) {
Color color = f.getColor();