Arturs Kozlovskis / Mbed 2 deprecated ELEC2645_Project_el18ak

Dependencies:   mbed

Revision:
12:f7dfd44569b6
Parent:
11:4722bf70b2be
Child:
13:1dbef50789ed
--- a/My_game_clases/Functions.h	Mon Apr 20 07:57:09 2020 +0000
+++ b/My_game_clases/Functions.h	Thu Apr 23 09:10:11 2020 +0000
@@ -35,14 +35,14 @@
 {
 public:
     Functions();
-    void ball_position_parabolic( N5110 &lcd, Objects &objects,Gamepad &pad, int c);//governs the balls movement in a parabolic way
-    void ball_position_linear (N5110 &lcd, Objects &objects,int c);//governs the balls movement in a linear way
+    void ball_position_parabolic( N5110 &lcd, Objects &objects, int c);//governs the balls movement in a parabolic way
+    void ball_position_linear (N5110 &lcd, Objects &objects, int c);//governs the balls movement in a linear way
     void collision_checker(N5110 &lcd,Objects &objects);//checks if the shot has coma into contact with the ball
     void ball1_finder(int x, int y);//checks which ball has been hit by a shot and then decreses it size(linear)
     void ball_finder(int x, int y);//checks which ball has been hit by a shot and then decreses it size(parabolic)
     bool cannon_smash(N5110 &lcd,Objects &objects);// checks if the cannon has crashed with anything
     int random(Gamepad &pad);//generates a random number
-    void ball_creater(N5110 &lcd, Objects &objects);//controls ball making
+    void ball_creater(N5110 &lcd, Objects &objects, Gamepad &pad);//controls ball making and their movement equations
 
 private:
     int _initial_radiuss;//holds the intial ball radiuss which is 2