forked from housq/RiverRaid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBullet.h
50 lines (35 loc) · 773 Bytes
/
Bullet.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//
// Bullet.h
// RiverRaid
//
// Created by Noor Bafageeh on 11/22/16.
// Copyright © 2016 Noor Bafageeh. All rights reserved.
//
#ifndef Bullet_h
#define Bullet_h
#include "Asset.h"
#include "string"
#include "RRApp.h"
#include "RRMap.h"
#include "SDL2/SDL.h"
#include "SDL2/SDL_image.h"
#include <iostream>
using namespace std ;
class RRApp;
class Asset;
class Bullet{
public:
Bullet(RRApp * app, SDL_Window *window, SDL_Renderer *renderer, Asset *player);
void render();
void fire(int flag);
void updateBullet();
SDL_Rect rect2;
SDL_Texture *bullet;
private:
int height, width;
SDL_Window *window;
RRApp *app;
bool fireBullet;
SDL_Renderer *renderer;
};
#endif /* Bullet_h */