summaryrefslogtreecommitdiff
path: root/game.h
diff options
context:
space:
mode:
authorSimponic <loganthebean222@gmail.com>2020-06-30 20:10:29 -0600
committerSimponic <loganthebean222@gmail.com>2020-06-30 20:10:29 -0600
commit3010473314505bd948c687ac644b7d87ef03298d (patch)
treee7099f6c431305cdd041d32ba244eb6360eec2f9 /game.h
parent7a60ab9f178dd813c876fcf8e25c947f9a9a5e06 (diff)
downloadasteroids-cs165-3010473314505bd948c687ac644b7d87ef03298d.tar.gz
asteroids-cs165-3010473314505bd948c687ac644b7d87ef03298d.zip
Updated file structure and changed indents to spaces
Diffstat (limited to 'game.h')
-rw-r--r--game.h53
1 files changed, 0 insertions, 53 deletions
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 <vector>
-#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<Rock *> rocks;
- vector<Bullet *> bullets;
- Ship* ship;
-
- float getClosestDistance( const FlyingObject &obj1 , const FlyingObject &obj2 ) const;
-
- vector<Rock *> 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 */