summaryrefslogtreecommitdiff
path: root/src/standardBird.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/standardBird.cpp
parent495f771530ce1869098bc568f34c243697cab73c (diff)
downloadskeet-cs165-70ea8877ace50d2ce609d7d5f721c887b0ea83ec.tar.gz
skeet-cs165-70ea8877ace50d2ce609d7d5f721c887b0ea83ec.zip
Added files
Diffstat (limited to 'src/standardBird.cpp')
-rw-r--r--src/standardBird.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/standardBird.cpp b/src/standardBird.cpp
new file mode 100644
index 0000000..38f8e46
--- /dev/null
+++ b/src/standardBird.cpp
@@ -0,0 +1,27 @@
+#include "standardBird.h"
+#include "uiDraw.h"
+
+// StandardBird constructor
+StandardBird :: StandardBird() : Bird()
+{
+
+}
+
+// Draw StandardBird
+void StandardBird :: draw()
+{
+ drawCircle( point , 15 );
+}
+
+// Apply gravity to StandardBird
+void StandardBird :: applyGravity ()
+{
+ this->velocity.addDy ( -0.1 );
+}
+
+// Hit StandardBird
+int StandardBird :: hit()
+{
+ kill();
+ return 1;
+}