Arturs Kozlovskis / Mbed 2 deprecated ELEC2645_Project_el18ak

Dependencies:   mbed

Revision:
23:cd38e48635e7
Parent:
22:f1811602a817
Child:
24:74a53dd49806
--- a/My_game_clases/Functions.h	Fri May 15 17:45:20 2020 +0000
+++ b/My_game_clases/Functions.h	Mon May 18 10:54:22 2020 +0000
@@ -7,34 +7,35 @@
 #include "Gamepad.h"
 #include "Objects.h"
 
+//holds parabolic ball values
+/** Struct for parabolic ball's varibales*/
+struct Ball{
+    int ball_x_pos[10]; /**< Holds parabolic ball's x position(int)*/ 
+    float movement_y_counter[10]; /**< Sets the gravity with which the ball will fall(float)*/
+    int time[10];/**<Holds the time which is used in the balls movement(int)*/
+    int ball_y_pos[10];/**<Holds parabolic ball's y position(int)*/
+    int time_incrementer[10];/**<Increments time value(int)*/
+    int ball_x_incrementer[10];/**Increments ball's x position(int)*/
+    int delta_r[10]; /**< Holds ball's radiuss value(int)*/    
+    int ball_trajectory_width[10];/**<Holds the value of ball's trajectories width(int)*/ 
+};
+
+//holds linear ball vvalues
+/**Struct for linear ball's varables*/
+struct Ball_linear{
+    int ball_x_pos[10]; /**< Holds ball's x position(int)*/
+    int movement_y_counter[10]; /**Sets the gravity with which the ball will fall(int)*/
+    int ball_y_pos[10];/**<Ball's y position(int)*/
+    int time_incrementer[10];/**<Increments the y(initaly time) value(int)*/
+    int ball_x_incrementer[10];/**<Increments ball's x value(int)*/
+    int delta_r[10];/**< Holds ball's radiuss value(int)*/    
+};
+
 /**Function class
 * @brief Contains the game engine
 * @author Arturs Kozlovskis
 * @date April,2020
 */
-
-//holds parabolic ball values
-struct Ball{
-    int ball_x_pos[10]; // balls x position
-    float movement_y_counter[10]; //sets the gravity with which the ball will fall
-    int time[10];//the time as in the y postion of the ball which will governed by equation y = _y_initial + _movement_y_counter * _time^2
-    int ball_y_pos[10];//balls_y_position
-    int time_incrementer[10];//increments time value
-    int ball_x_incrementer[10];//increments movement_x_pos value
-    int delta_r[10]; // defines the ball size    
-    int ball_trajectory_width[10]; 
-};
-
-//holds linear ball vvalues
-struct Ball_linear{
-    int ball_x_pos[10]; // moves the ball across the screen
-    int movement_y_counter[10]; //sets the gravity with which the ball will fall
-    int ball_y_pos[10];//balls_y_position
-    int time_incrementer[10];//increments time value
-    int ball_x_incrementer[10];//increments movement_x_pos value
-    int delta_r[10]; // defines the ball size    
-};
-
 class Functions 
 {
 public: