summaryrefslogtreecommitdiff
path: root/src/standardBird.cpp
blob: 38f8e469618bf697f6af11d4e9a82880a542fb1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;
}