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 --- game.h | 53 ----------------------------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 game.h (limited to 'game.h') diff --git a/game.h b/game.h deleted file mode 100644 index d64efc6..0000000 --- a/game.h +++ /dev/null @@ -1,53 +0,0 @@ -/********************************************************************* - * File: game.h - * Description: Defines the game class for Asteroids - * - *********************************************************************/ - -#ifndef GAME_H -#define GAME_H - -#include -#include "bullet.h" -#include "ship.h" -#include "rocks.h" -#include "uiDraw.h" -#include "uiInteract.h" - -#define CLOSE_ENOUGH 15 - -using namespace std; - -class Game -{ -private: - Point topLeft; - Point bottomRight; - vector rocks; - vector bullets; - Ship* ship; - - float getClosestDistance( const FlyingObject &obj1 , const FlyingObject &obj2 ) const; - - vector createRocks(); - - void advanceBullets(); - void advanceAsteroids(); - void advanceShip(); - - void cleanUpZombies(); - - void handleCollisions(); - - void drawBullets(); - void drawRocks(); - void drawShip(); -public: - Game ( const Point &tl , const Point &br ); - void handleInput ( const Interface &ui ); - void draw ( const Interface &ui ); - void advance(); -}; - - -#endif /* GAME_H */ -- cgit v1.2.3-70-g09d2