forked from vishusmartishus/CS330
-
Notifications
You must be signed in to change notification settings - Fork 0
/
EnemyFireball.cpp
58 lines (36 loc) · 989 Bytes
/
EnemyFireball.cpp
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
* EnemyFireball.cpp
* Movable
*
* Created by Jeremy Sampson, Matt Oldfield, and Alex Martishius
* Copyright 2011 __MyCompanyName__. All rights reserved.
*
*/
//---------------------------------------------------------
#include "EnemyFireball.h"
//---------------------------------------------------------
EnemyFireball::EnemyFireball()
{
setKillsBottom(true);
setKillsSide(true);
setKillsTop(true);
setPoints(0);
setXVelocity(0.0);
setYVelocity(0.0);
}
//---------------------------------------------------------
EnemyFireball::~EnemyFireball()
{
}
//---------------------------------------------------------
void EnemyFireball::draw()
{
glColor3ub(255, 48, 48);
glBegin(GL_POLYGON);
glVertex2d(left(),bottom());
glVertex2d(right(),bottom());
glVertex2d(right(),top());
glVertex2d(left(),top());
glEnd();
}
//---------------------------------------------------------