From 70ea8877ace50d2ce609d7d5f721c887b0ea83ec Mon Sep 17 00:00:00 2001 From: Logan Hunt Date: Wed, 12 Aug 2020 14:13:50 -0600 Subject: Added files --- src/standardBird.cpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/standardBird.cpp (limited to 'src/standardBird.cpp') 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; +} -- cgit v1.2.3-70-g09d2