-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStarfighter.cpp
More file actions
55 lines (41 loc) · 1006 Bytes
/
Starfighter.cpp
File metadata and controls
55 lines (41 loc) · 1006 Bytes
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
/*
Author: Mark Fuller
Diego Maya
Assignment: Galaga : Color : Struct Implementation
Date Created: 4/8/2018
Date Last Modified: 4/8/2018 : (Mark)Initial Functions and variables
4/8/2018 : (Mark)Added moveShip, shoot functions
4/14/2018 : (Mark) Implemented some changes from
other classes
*/
#include "Starfighter.h"
#include "Type.h"
Starfighter::Starfighter(){
health = 1;
//pos.x = 40;
//pos.y = 80;
}
Starfighter::Starfighter(int b, int x, int y){
Type ship_Type(b);
//p.x = x;
//p.y = y;
}
void Starfighter::hit() {
}
void Starfighter::draw(SDL_Plotter g){
//Standard::draw(graphic, p, 17, 17, g);
}
void Starfighter::moveShip(int a, SDL_Plotter &g) {
//p.x = p.x + a;
//Color col;
//draw();
//hit();
}
void Starfighter::shoot() {
/*
Bullet b1;
for(int i = getY; i < 0; i--){
b1.move(0 ,-1); //moves the bullett 0 in the x direction and -1 in the y
}
*/
}