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.
Diff: My_game_clases/Objects.h
- Revision:
- 25:b0c1d7955678
- Parent:
- 21:32429d8e90ff
--- a/My_game_clases/Objects.h Mon May 18 11:27:07 2020 +0000
+++ b/My_game_clases/Objects.h Tue May 19 09:14:10 2020 +0000
@@ -5,7 +5,7 @@
#include "N5110.h"
#include "Gamepad.h"
#include <vector>
-/** Object class
+/** Objects class
* @brief draws game objects on the lcd screen
* @author Arturs Kozlovskis
* @date April,2020
@@ -36,15 +36,15 @@
/** Draw shots
* @param N5110 class object
* @param Gamepad class object
- * @param update value(bool)
+ * @param c if an update of position is needed value(bool)
*/
void draw_shots(N5110 &lcd,Gamepad &pad,bool c);// makes the shoting on the screen
/** Draw ball
* @param N5110 calss object
- * @param ball x position(int)
- * @param ball y position(int)
- * @param the delta radiuss(int)
+ * @param ball_x ball x position(int)
+ * @param ball_y ball y position(int)
+ * @param delta_r ball's radiuss(int)
*/
void draw_ball(N5110 &lcd, int ball_x, int ball_y, int delta_r); //ball_x: balls x position; ball_y: balls y position; delta_r: added to the inital radiuss to make the ball bigger
@@ -53,19 +53,19 @@
*/
int get_size();//gets the size of _shot_y_pos vector
/** Get x value
- * @param which shot value to return(int)
+ * @param i which shot value to return(int)
* @return shot x value
*/
int get_x_value(int i);//gets _shot_x_pos(i)
/** Get y value
- * @param which shot value to return(int)
+ * @param i which shot value to return(int)
* @return shot y value
*/
int get_y_value(int i);//gets _shot_y_pos(i)
/** Erase a shot
- * @param which shot value to erase(int)
+ * @param i which shot value to erase(int)
*/
void erase_shot(int i);//erases _shot_x_pos(i) and _shot_y_pos(i)