ELEC2645 (2018/19) / Mbed 2 deprecated ll16o2l_ELEC2645

Dependencies:   mbed Gamepad

Revision:
15:807eba7c7811
Parent:
3:aa82968b7a8e
--- a/Objects/Objects.cpp	Sun May 05 11:25:08 2019 +0000
+++ b/Objects/Objects.cpp	Tue May 07 18:01:54 2019 +0000
@@ -11,13 +11,7 @@
 
 }
 
-/**
-*   This method will be used to initialise the objects variables.
-*   Saves global variables to local variables.
-*   @author Oliver Luong
-*   @param size, speed
-*   @date 22/04/2019
-*/
+
 void Objects::init(int size,int speed)
 {
     _size = size;
@@ -48,44 +42,23 @@
     }
 }
 
-/**
-*   This method will be used to draw the objects to the LCD.
-*   @author Oliver Luong
-*   @date 22/04/2019
-*/
 void Objects::draw(N5110 &lcd)
 {
     lcd.drawCircle(_x,_y,_size,FILL_BLACK);  // x,y,radius,black fill
 }
 
-/**
-*   This method will be used to update the objects position.
-*   @author Oliver Luong
-*   @date 22/04/2019
-*/
 void Objects::update()
 {
     _x += _velocity.x;
     _y += _velocity.y;
 }
 
-/**
-*   This method will be used to set the velocity of the objects.
-*   @author Oliver Luong
-*   @param v
-*   @date 22/04/2019
-*/
 void Objects::set_velocity(Vector2D v)
 {
     _velocity.x = v.x;
     _velocity.y = v.y;
 }
 
-/**
-*   This method will be used to return the velocity when called.
-*   @author Oliver Luong
-*   @date 22/04/2019
-*/
 Vector2D Objects::get_velocity()
 {
     Vector2D v = {_velocity.x,_velocity.y};