Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: Floors/Floors.h
- Revision:
- 24:67dc71a8f009
- Parent:
- 21:6b16ca9834e6
- Child:
- 26:d16a5b1e0ace
--- a/Floors/Floors.h Wed May 08 08:46:11 2019 +0000 +++ b/Floors/Floors.h Wed May 08 14:24:53 2019 +0000 @@ -6,20 +6,59 @@ #include "Gamepad.h" #include "Enemy.h" +/** Floors class +@brief Class for the floors +@author Melissa Hartmann +@date May 2019 +*/ class Floors{ public: Floors(); ~Floors(); + + /** + @brief defines the initial position of the bullet + @param float dood_pos_x + @param float dood_pos_y + @details The intial position is in same position as doodler's trunk end (which is why I am adding the 12 and 4 to the doodler's position) + */ void init(int y, int width, int height); + + /** + @brief defines the initial position of the bullet + @param float dood_pos_x + @param float dood_pos_y + @details The intial position is in same position as doodler's trunk end (which is why I am adding the 12 and 4 to the doodler's position) + */ void draw(N5110 &lcd); + + /** + @brief defines the initial position of the bullet + @param float dood_pos_x + @param float dood_pos_y + @details The intial position is in same position as doodler's trunk end (which is why I am adding the 12 and 4 to the doodler's position) + */ void update(float doodler_pos_y); + + /** + @brief defines the initial position of the bullet + @param float dood_pos_x + @param float dood_pos_y + @details The intial position is in same position as doodler's trunk end (which is why I am adding the 12 and 4 to the doodler's position) + */ Vector2D get_position(); + + /** + @brief defines the initial position of the bullet + @param float dood_pos_x + @param float dood_pos_y + @details The intial position is in same position as doodler's trunk end (which is why I am adding the 12 and 4 to the doodler's position) + */ void set_position(Vector2D pos); // mutators private: int _height; int _width; - float _doodler_pos_y; Vector2D _position; Enemy _eny; int place;