-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmissile.h
29 lines (24 loc) · 860 Bytes
/
missile.h
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
// Taylor Seale, Iheanyi Ekechukwu, Ryan Shea, Andrew Caron
// Fundamentals of Computing II: Final Project
// missile.h: This is the header file for the Missile class which controls the missile obstacles
#include "SDL/SDL.h"
#include "sprite.h"
#include <vector>
#include <string>
#ifndef MISSILE_H
#define MISSILE_H
class Missile : public Sprite{
public:
Missile(std::string,int,int,int,int); //constructor
virtual void move(); //moves missiles across screen
virtual void show(SDL_Surface *); //shows correct animation for missiles
virtual void set_clips(); //sets sprite sheet clip positions
virtual int getOffSetX(); //returns x position coordinate
virtual int getOffSetY(); //returns y position coordinate
virtual int collision(); //processes collision with otter
protected:
//states
const int SHOOT;
const int EXPLODE;
};
#endif