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 --- rocks.cpp | 63 --------------------------------------------------------------- 1 file changed, 63 deletions(-) delete mode 100644 rocks.cpp (limited to 'rocks.cpp') diff --git a/rocks.cpp b/rocks.cpp deleted file mode 100644 index 7c3c13e..0000000 --- a/rocks.cpp +++ /dev/null @@ -1,63 +0,0 @@ -#include "rocks.h" -#include "uiDraw.h" -#include -#define M_PI 3.14159265 - -// Destroy Big Rock and return vector of new *rocks -vector BigRock :: destroy() -{ - vector rocks; - Velocity rockVel = this->velocity; - Point rockPoint = this->point; - - rockVel.addDy ( 1 ); - rocks.push_back ( new MediumRock ( rockPoint , rockVel ) ); - - rockVel.addDy ( -2 ); // Original rockvel dy - 1 - rocks.push_back ( new MediumRock ( rockPoint , rockVel ) ); - - rockVel.addDy ( 1 ); // Original rockvel dy - rockVel.addDx ( (float) random ( 1.0 , 3.0 ) ); - rocks.push_back ( new SmallRock ( rockPoint , rockVel ) ); - - return rocks; -} - -// Draw big rock -void BigRock :: draw() -{ - drawLargeAsteroid ( this->point , this->angle ); -} - -// Destroy Medium Rock and return vector of new *rocks -vector MediumRock :: destroy() -{ - vector rocks; - Velocity rockVel = this->velocity; - Point rockPoint = this->point; - - rockVel.addDx ( 3 ); - rocks.push_back ( new SmallRock ( rockPoint , rockVel ) ); - rockVel.addDx ( -6 ); - rocks.push_back ( new SmallRock ( rockPoint , rockVel ) ); - - return rocks; -} - -// Draw Medium Rock -void MediumRock :: draw() -{ - drawMediumAsteroid ( this->point , this->angle ); -} - -// Destroy Small Rock and return an empty *rock vector -vector SmallRock :: destroy() -{ - return vector(); -} - -// Draw small rock -void SmallRock :: draw() -{ - drawSmallAsteroid ( this->point , this->angle ); -} -- cgit v1.2.3-70-g09d2