/
EntityFactory.h
47 lines (40 loc) · 914 Bytes
/
EntityFactory.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
#ifndef ENTITYFACTORY_H
#define ENTITYFACTORY_H
#include "Core/Image.h"
#include "Core/Rectangle.h"
#include "Core/SceneNode.h"
#include "Core/Sound.h"
#include "EntityDef.h"
#include "AlienScoutEntity.h"
#include "BossEntity.h"
#include "BulletEntity.h"
#include "CheckpointEntity.h"
#include "ExplosionEntity.h"
#include "PlayerEntity.h"
class ExplosionEntity;
class PlayerEntity;
class EntityFactory
{
private:
Rectangle* camera;
Image alienScoutImage;
Image bossImage;
Image bulletImage;
Image checkpointImage;
Image explosionImage;
Image explosionSmallImage;
Image playerImage;
Image bossBulletImage;
Map* map;
Sound explosionSound;
Sound bulletSound;
public:
EntityFactory();
~EntityFactory();
bool init();
void free();
void setCamera(Rectangle* c);
void setMap(Map* m);
SceneNode* makeEntity(int e, int x, int y);
};
#endif