From 3010473314505bd948c687ac644b7d87ef03298d Mon Sep 17 00:00:00 2001 From: Simponic Date: Tue, 30 Jun 2020 20:10:29 -0600 Subject: Updated file structure and changed indents to spaces --- flyingObject.cpp | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 flyingObject.cpp (limited to 'flyingObject.cpp') diff --git a/flyingObject.cpp b/flyingObject.cpp deleted file mode 100644 index 149e3f5..0000000 --- a/flyingObject.cpp +++ /dev/null @@ -1,20 +0,0 @@ -#include "flyingObject.h" -#include - -// Advance flyingobjects -void FlyingObject::advance() -{ - point.addX( getVelocity().getDx() ); - point.addY( getVelocity().getDy() ); - - if ( point.getX() > 200 ) - point.setX( -200 ); - else if ( point.getX() < -200 ) - point.setX( 200 ); - - if ( point.getY() > 200 ) - point.setY( -200 ); - else if ( point.getY() < -200 ) - point.setY( 200 ); - -} -- cgit v1.2.3-70-g09d2