-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanager.h
55 lines (47 loc) · 1012 Bytes
/
manager.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
51
52
53
#include <vector>
#include <SDL.h>
#include "ioManager.h"
#include "clock.h"
#include "world.h"
#include "viewport.h"
#include "HUD.h"
#include "scaledSprite.h"
#include "player.h"
#include "subjectplayer.h"
class Manager {
public:
Manager ();
~Manager ();
void play();
void switchSprite();
void printVel();
private:
const bool env;
bool displayHUD;
const Gamedata& gdata;
const IOManager& io;
Clock& clock;
SDL_Surface * const screen;
World layer1;
World layer2;
SDL_Surface * const orbSurface;
SDL_Surface * const backSurface;
Frame backFrame;
Viewport& viewport;
std::vector<Drawable* > sprites;
std::vector<ScaledSprite* > orbs;
Player *players;
HUD hud;
int currentSprite;
bool makeVideo;
unsigned int frameCount;
const std::string username;
const std::string title;
const unsigned int frameMax;
void makeOrbs();
void draw() const;
void update();
Manager(const Manager&);
Manager& operator=(const Manager&);
void makeFrame();
};