summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/bullet.h (renamed from src/bullet.h)0
-rw-r--r--include/flyingObject.h (renamed from src/flyingObject.h)0
-rw-r--r--include/game.h (renamed from src/game.h)0
-rw-r--r--include/point.h (renamed from src/point.h)0
-rw-r--r--include/rocks.h (renamed from src/rocks.h)0
-rw-r--r--include/ship.h (renamed from src/ship.h)0
-rw-r--r--include/uiDraw.h (renamed from src/uiDraw.h)0
-rw-r--r--include/uiInteract.h (renamed from src/uiInteract.h)0
-rw-r--r--include/velocity.h (renamed from src/velocity.h)0
-rw-r--r--src/Makefile (renamed from src/makefile)27
-rwxr-xr-xsrc/a.outbin0 -> 104128 bytes
-rw-r--r--src/bullet.cpp4
-rw-r--r--src/bullet.obin0 -> 7208 bytes
-rw-r--r--src/driver.cpp4
-rw-r--r--src/driver.obin0 -> 18744 bytes
-rw-r--r--src/flyingObject.cpp2
-rw-r--r--src/flyingObject.obin0 -> 7360 bytes
-rw-r--r--src/game.cpp6
-rw-r--r--src/game.obin0 -> 141592 bytes
-rw-r--r--src/point.cpp4
-rw-r--r--src/point.obin0 -> 5504 bytes
-rw-r--r--src/rocks.cpp4
-rw-r--r--src/rocks.obin0 -> 53520 bytes
-rw-r--r--src/ship.cpp4
-rw-r--r--src/ship.obin0 -> 4304 bytes
-rw-r--r--src/uiDraw.cpp4
-rw-r--r--src/uiDraw.obin0 -> 29136 bytes
-rw-r--r--src/uiInteract.cpp4
-rw-r--r--src/uiInteract.obin0 -> 12872 bytes
-rw-r--r--src/velocity.cpp4
-rw-r--r--src/velocity.obin0 -> 5656 bytes
31 files changed, 33 insertions, 34 deletions
diff --git a/src/bullet.h b/include/bullet.h
index 3392ee4..3392ee4 100644
--- a/src/bullet.h
+++ b/include/bullet.h
diff --git a/src/flyingObject.h b/include/flyingObject.h
index 3296c5a..3296c5a 100644
--- a/src/flyingObject.h
+++ b/include/flyingObject.h
diff --git a/src/game.h b/include/game.h
index 943ed63..943ed63 100644
--- a/src/game.h
+++ b/include/game.h
diff --git a/src/point.h b/include/point.h
index 7f0715f..7f0715f 100644
--- a/src/point.h
+++ b/include/point.h
diff --git a/src/rocks.h b/include/rocks.h
index ae12e2b..ae12e2b 100644
--- a/src/rocks.h
+++ b/include/rocks.h
diff --git a/src/ship.h b/include/ship.h
index 46b6817..46b6817 100644
--- a/src/ship.h
+++ b/include/ship.h
diff --git a/src/uiDraw.h b/include/uiDraw.h
index caa0fb5..caa0fb5 100644
--- a/src/uiDraw.h
+++ b/include/uiDraw.h
diff --git a/src/uiInteract.h b/include/uiInteract.h
index d7bfe6b..d7bfe6b 100644
--- a/src/uiInteract.h
+++ b/include/uiInteract.h
diff --git a/src/velocity.h b/include/velocity.h
index 11c41cb..11c41cb 100644
--- a/src/velocity.h
+++ b/include/velocity.h
diff --git a/src/makefile b/src/Makefile
index 22b20f7..d4e921a 100644
--- a/src/makefile
+++ b/src/Makefile
@@ -2,18 +2,17 @@
# Logan Hunt
# Summary:
# Play the game asteroids
-# Above and Beyond
+# Above and Beyond (Extra Credit)
# Changed colors
-# Added fuel
+# Added fuel
# rotation: -1 units/frame
# movement: -3 units/frame
-# Made sure that initially, trajectories of rocks will
+# Made sure that initially, trajectories of spawned rocks will
# not hit ship
# There's a chance of medium asteroids spawning at the start
# The initial amount of large rocks is random
###############################################################
-
LFLAGS = -lglut -lGLU -lGL
###############################################################
@@ -34,34 +33,34 @@ a.out: driver.o game.o uiInteract.o uiDraw.o point.o velocity.o flyingObject.o s
# bullet.o The bullets fired from the ship
# rocks.o Contains all of the Rock classes
###############################################################
-uiDraw.o: uiDraw.cpp uiDraw.h
+uiDraw.o: uiDraw.cpp ../include/uiDraw.h
g++ -c uiDraw.cpp
-uiInteract.o: uiInteract.cpp uiInteract.h
+uiInteract.o: uiInteract.cpp ../include/uiInteract.h
g++ -c uiInteract.cpp
-point.o: point.cpp point.h
+point.o: point.cpp ../include/point.h
g++ -c point.cpp
-driver.o: driver.cpp game.h
+driver.o: driver.cpp ../include/game.h
g++ -c driver.cpp
-game.o: game.cpp game.h uiDraw.h uiInteract.h point.h velocity.h flyingObject.h bullet.h rocks.h ship.h
+game.o: game.cpp ../include/game.h ../include/uiDraw.h ../include/uiInteract.h ../include/point.h ../include/velocity.h ../include/flyingObject.h ../include/bullet.h ../include/rocks.h ../include/ship.h
g++ -c game.cpp
-velocity.o: velocity.cpp velocity.h point.h
+velocity.o: velocity.cpp ../include/velocity.h ../include/point.h
g++ -c velocity.cpp
-flyingObject.o: flyingObject.cpp flyingObject.h point.h velocity.h uiDraw.h
+flyingObject.o: flyingObject.cpp ../include/flyingObject.h ../include/point.h ../include/velocity.h ../include/uiDraw.h
g++ -c flyingObject.cpp
-ship.o: ship.cpp ship.h flyingObject.h point.h velocity.h uiDraw.h
+ship.o: ship.cpp ../include/ship.h ../include/flyingObject.h ../include/point.h ../include/velocity.h ../include/uiDraw.h
g++ -c ship.cpp
-bullet.o: bullet.cpp bullet.h flyingObject.h point.h velocity.h uiDraw.h
+bullet.o: bullet.cpp ../include/bullet.h ../include/flyingObject.h ../include/point.h ../include/velocity.h ../include/uiDraw.h
g++ -c bullet.cpp
-rocks.o: rocks.cpp rocks.h flyingObject.h point.h velocity.h uiDraw.h
+rocks.o: rocks.cpp ../include/rocks.h ../include/flyingObject.h ../include/point.h ../include/velocity.h ../include/uiDraw.h
g++ -c rocks.cpp
###############################################################
diff --git a/src/a.out b/src/a.out
new file mode 100755
index 0000000..41f0db3
--- /dev/null
+++ b/src/a.out
Binary files differ
diff --git a/src/bullet.cpp b/src/bullet.cpp
index 69fb603..b2ea253 100644
--- a/src/bullet.cpp
+++ b/src/bullet.cpp
@@ -1,5 +1,5 @@
-#include "bullet.h"
-#include "ship.h"
+#include "../include/bullet.h"
+#include "../include/ship.h"
#include <cmath>
#define M_PI 3.14159265
diff --git a/src/bullet.o b/src/bullet.o
new file mode 100644
index 0000000..66eff87
--- /dev/null
+++ b/src/bullet.o
Binary files differ
diff --git a/src/driver.cpp b/src/driver.cpp
index 5e1b9a5..06d7ca1 100644
--- a/src/driver.cpp
+++ b/src/driver.cpp
@@ -7,8 +7,8 @@
* that specifies what methods of the game class are
* called each time through the game loop.
******************************************************/
-#include "game.h"
-#include "uiInteract.h"
+#include "../include/game.h"
+#include "../include/uiInteract.h"
/*************************************
* All the interesting work happens here, when
diff --git a/src/driver.o b/src/driver.o
new file mode 100644
index 0000000..c1b4d8a
--- /dev/null
+++ b/src/driver.o
Binary files differ
diff --git a/src/flyingObject.cpp b/src/flyingObject.cpp
index 149e3f5..08d195b 100644
--- a/src/flyingObject.cpp
+++ b/src/flyingObject.cpp
@@ -1,4 +1,4 @@
-#include "flyingObject.h"
+#include "../include/flyingObject.h"
#include <iostream>
// Advance flyingobjects
diff --git a/src/flyingObject.o b/src/flyingObject.o
new file mode 100644
index 0000000..127099c
--- /dev/null
+++ b/src/flyingObject.o
Binary files differ
diff --git a/src/game.cpp b/src/game.cpp
index f7d4054..2430a10 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -5,9 +5,9 @@
*
*********************************************************************/
-#include "game.h"
-#include "uiDraw.h"
-#include "bullet.h"
+#include "../include/game.h"
+#include "../include/uiDraw.h"
+#include "../include/bullet.h"
// These are needed for the getClosestDistance function...
#include <limits>
#include <iostream>
diff --git a/src/game.o b/src/game.o
new file mode 100644
index 0000000..09aba02
--- /dev/null
+++ b/src/game.o
Binary files differ
diff --git a/src/point.cpp b/src/point.cpp
index cad96e4..a40e1ef 100644
--- a/src/point.cpp
+++ b/src/point.cpp
@@ -8,9 +8,9 @@
* the location and the bounds.
************************************************************************/
-#include "point.h"
+#include "../include/point.h"
#include <cassert>
-#include "uiDraw.h"
+#include "../include/uiDraw.h"
using namespace std;
/******************************************
* POINT : CONSTRUCTOR WITH X,Y
diff --git a/src/point.o b/src/point.o
new file mode 100644
index 0000000..2427fb4
--- /dev/null
+++ b/src/point.o
Binary files differ
diff --git a/src/rocks.cpp b/src/rocks.cpp
index 7c3c13e..b29fb64 100644
--- a/src/rocks.cpp
+++ b/src/rocks.cpp
@@ -1,5 +1,5 @@
-#include "rocks.h"
-#include "uiDraw.h"
+#include "../include/rocks.h"
+#include "../include/uiDraw.h"
#include <cmath>
#define M_PI 3.14159265
diff --git a/src/rocks.o b/src/rocks.o
new file mode 100644
index 0000000..0072788
--- /dev/null
+++ b/src/rocks.o
Binary files differ
diff --git a/src/ship.cpp b/src/ship.cpp
index 2eaa852..da21e69 100644
--- a/src/ship.cpp
+++ b/src/ship.cpp
@@ -1,5 +1,5 @@
-#include "ship.h"
-#include "bullet.h"
+#include "../include/ship.h"
+#include "../include/bullet.h"
#include <cmath>
diff --git a/src/ship.o b/src/ship.o
new file mode 100644
index 0000000..4cd5e1a
--- /dev/null
+++ b/src/ship.o
Binary files differ
diff --git a/src/uiDraw.cpp b/src/uiDraw.cpp
index 6d36f24..9e64706 100644
--- a/src/uiDraw.cpp
+++ b/src/uiDraw.cpp
@@ -34,8 +34,8 @@
#include <math.h>
#endif // _WIN32
-#include "point.h"
-#include "uiDraw.h"
+#include "../include/point.h"
+#include "../include/uiDraw.h"
using namespace std;
diff --git a/src/uiDraw.o b/src/uiDraw.o
new file mode 100644
index 0000000..0748021
--- /dev/null
+++ b/src/uiDraw.o
Binary files differ
diff --git a/src/uiInteract.cpp b/src/uiInteract.cpp
index 1e89833..bb9f8fe 100644
--- a/src/uiInteract.cpp
+++ b/src/uiInteract.cpp
@@ -38,8 +38,8 @@
#include <math.h>
#endif // _WIN32
-#include "uiInteract.h"
-#include "point.h"
+#include "../include/uiInteract.h"
+#include "../include/point.h"
using namespace std;
diff --git a/src/uiInteract.o b/src/uiInteract.o
new file mode 100644
index 0000000..b19d945
--- /dev/null
+++ b/src/uiInteract.o
Binary files differ
diff --git a/src/velocity.cpp b/src/velocity.cpp
index ceca109..ec64cf3 100644
--- a/src/velocity.cpp
+++ b/src/velocity.cpp
@@ -1,4 +1,4 @@
-#include "velocity.h"
+#include "../include/velocity.h"
// Default velocity constructor
Velocity :: Velocity ()
@@ -7,7 +7,7 @@ Velocity :: Velocity ()
setDy ( 0.0 );
}
-// Velocity constructor
+// Velocity constructor with data
Velocity :: Velocity ( float dx , float dy )
{
setDx ( dx );
diff --git a/src/velocity.o b/src/velocity.o
new file mode 100644
index 0000000..002241b
--- /dev/null
+++ b/src/velocity.o
Binary files differ