-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanager.h
35 lines (32 loc) · 1.01 KB
/
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
#ifndef _MANAGER_H_
#define _MANAGER_H_
#include "instruction.h"
#include "sprite.h"
#include <cairo.h>
#include <queue>
#include <map>
#include <list>
#include <string>
#include "global.h"
/*
Manager: This is a base class that implements functions common to all managers
*/
class Manager {
protected:
//This contains the chronologically sorted list of actions to perform
std::queue<Instruction*> InstructList;
//This holds a list of all Sprites by name
std::map<SPRITE_MAP> SpriteList;
//This holds a list of all sprites that are currently being drawn
std::list <Sprite *> DrawList;
//This is the cairo buffer to draw the sprites at.
cairo_t * Buffer;
//These are the root parameters
std::map<PARAM_MAP> Parameters;
public:
//This function starts the scene generation loop. It should call repaint every time it wants to draw the scene on the screen.
void render();
//This function uses the passed in time (In milliseconds since the movie started) to draw the sprites.
void repaint(int);
};
#endif