diff options
author | Matt Kohls <mattkohls13@gmail.com> | 2018-12-05 21:16:27 -0500 |
---|---|---|
committer | Matt Kohls <mattkohls13@gmail.com> | 2018-12-05 21:16:27 -0500 |
commit | 34f7525f311f6865b234e357de030d73f6658458 (patch) | |
tree | f40fbb4ac6b1fcd4defc9bbc3a10c932d117dc4c /fungi.cpp | |
parent | c78aadb117d3796e2c0e59949bb881ed9839d3cc (diff) | |
download | fungi-34f7525f311f6865b234e357de030d73f6658458.tar.gz fungi-34f7525f311f6865b234e357de030d73f6658458.tar.bz2 fungi-34f7525f311f6865b234e357de030d73f6658458.zip |
Adding comments
Diffstat (limited to 'fungi.cpp')
-rw-r--r-- | fungi.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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(); |