summaryrefslogtreecommitdiff
path: root/src/sacredBird.cpp
diff options
context:
space:
mode:
authorLogan Hunt <loganthebean222@gmail.com>2020-08-12 14:13:50 -0600
committerLogan Hunt <loganthebean222@gmail.com>2020-08-12 14:13:50 -0600
commit70ea8877ace50d2ce609d7d5f721c887b0ea83ec (patch)
tree514aa4f3d10b0a1db21928f8a002aa10458ecbb5 /src/sacredBird.cpp
parent495f771530ce1869098bc568f34c243697cab73c (diff)
downloadskeet-cs165-70ea8877ace50d2ce609d7d5f721c887b0ea83ec.tar.gz
skeet-cs165-70ea8877ace50d2ce609d7d5f721c887b0ea83ec.zip
Added files
Diffstat (limited to 'src/sacredBird.cpp')
-rw-r--r--src/sacredBird.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/sacredBird.cpp b/src/sacredBird.cpp
new file mode 100644
index 0000000..72e9c2c
--- /dev/null
+++ b/src/sacredBird.cpp
@@ -0,0 +1,26 @@
+#include "sacredBird.h"
+#include "uiDraw.h"
+#include "UFO.h"
+// SacredBird constructor
+SacredBird :: SacredBird() : Bird()
+{
+}
+
+// Draw SacredBird
+void SacredBird :: draw()
+{
+ drawSacredBird( point , 15 );
+}
+
+// Apply gravity to SacredBird
+void SacredBird :: applyGravity ()
+{
+ this->velocity.addDy ( -0.1 );
+}
+
+// Hit SacredBird
+int SacredBird :: hit()
+{
+ kill();
+ return -10;
+}