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: Rock/Rock.h
- Revision:
- 39:5d4277548303
- Parent:
- 31:27c938ec2a11
--- a/Rock/Rock.h Mon May 25 15:25:14 2020 +0000
+++ b/Rock/Rock.h Mon May 25 16:27:29 2020 +0000
@@ -2,14 +2,38 @@
#include "N5110.h"
#include "Gamepad.h"
+/** Rock Class
+@author Joshua Ohara, el18jkeo, 201291390
+@brief Creates and control the rocks which make up the cover
+@date May 2020
+*/
+
class Rock
{
public:
+
+ /**Sets the starting value of private variables*/
void init(int x, int y, int size); //sets private variables to inputs
+
+ /**Draws the rock of it is alive*/
void render(N5110 &lcd); //draws rock
+
+
//accessors and mutators//
+
+ /*Returns a 2D vector of the position of the rock
+ *@return rock position (Vector2D)
+ */
Vector2D get_position(); //returns position of the rock
+
+ /**Sets the life value of the rock
+ *@param _life (bool)
+ */
void set_life(bool x); //sets the life variable of the rock
+
+ /**Returns the life value of the rock
+ *@return _life (bool)
+ */
bool get_life(); //returns the life variable of the rock
private: