-
Notifications
You must be signed in to change notification settings - Fork 0
/
spritemanager.h
42 lines (38 loc) · 915 Bytes
/
spritemanager.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
#include <SDL.h>
#include <iostream>
#include <string>
#include <list>
#include "framefactory.h"
#include "viewport.h"
#include "sprite.h"
#include "player.h"
#include "redorb.h"
#include "enemystationary.h"
#include "boxtarget.h"
#include "bigbullet.h"
#include "flame.h"
#include "frame.h"
#include "enemyFinal1.h"
class SpriteManager {
public:
SpriteManager ();
~SpriteManager ();
void draw();
void update(Uint32 ticks);
void setControls(uint8_t c) { controls = c; }
bool getStatusPlayer() { return playerAlive; }
bool getStatusEnemy() { return enemyAlive; }
void trackSprite();
private:
Sprite* player;
bool playerAlive;
bool enemyAlive;
std::list<Sprite*> enemy;
Viewport& viewport;
std::list<Sprite*> finalenemy;
uint8_t controls;
unsigned track;
std::string intToString(int n);
SpriteManager(const SpriteManager&);
SpriteManager& operator=(const SpriteManager&);
};