1 /***************************************************************************
2                           entity_factory.h  -  description
3                              -------------------
4     begin                : Jun 13 2007
5     copyright            : (C) 2007 by Giuseppe D'Aqui'
6     email                : kumber@tiscalinet.it
7  ***************************************************************************/
8 
9 /***************************************************************************
10  *                                                                         *
11  *   This program is free software; you can redistribute it and/or modify  *
12  *   it under the terms of the GNU General Public License, Version 2,      *
13  *   as published by the Free Software Foundation.                         *
14  *                                                                         *
15  ***************************************************************************/
16 
17 #ifndef ENTITY_FACTORY_H_
18 #define ENTITY_FACTORY_H_
19 #include "entity_type.h"
20 
21 
22 class Entity;
23 class Level;
24 
25 
26 class Entity_Factory
27 {
28 private:
29 
30 public:
31 
32 	Entity* create_entity(Entity_Type type, Level* level);
33 
34 
35 // begin Singleton stuff
36 
37 private:
38 
39 	static Entity_Factory* _instance;
40 
41 protected:
42 
Entity_Factory()43 	Entity_Factory(){};
44 
45 public:
46 
47 	static Entity_Factory* instance();
48 
49 // end Singleton stuff
50 
51 };
52 
53 #endif /*ENTITY_FACTORY_H_*/
54