-
Notifications
You must be signed in to change notification settings - Fork 0
/
gwindow.h
43 lines (42 loc) · 931 Bytes
/
gwindow.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
#ifndef GWINDOW_H
#define GWINDOW_H
#include <SDL.h>
#include "game.h"
#include <iostream>
class Creature;
class GWindow
{
private:
SDL_Window *window;
SDL_Surface *screenSurface;
SDL_Surface *background;
SDL_Surface *player;
SDL_Surface *enemy;
SDL_Surface *wall;
SDL_Surface *barbwire;
SDL_Surface *mud;
SDL_Surface *lose;
SDL_Surface *win;
SDL_Surface *sniper;
SDL_Surface *bazooka;
SDL_Surface *pistol;
SDL_Surface *sniperrifle;
// SDL_Surface *bullet;
Game* game;
SDL_Surface* loadSurface( std::string path );
void showObstacles();
void showMobiles();
void showBackground();
void showWin();
void showLose();
void showHp(Creature *_creature);
void ShowWeapons(Creature *_creature);
public:
Game *getGamePtr();
bool init();
bool loadMedia();
GWindow();
void timerUpdate();
~GWindow();
};
#endif // GWINDOW_H