class Factory
{
public:
+ virtual ~Factory()
+ { }
+
/** Creates a new gameobject from a lisp node.
* Remember to delete the objects later
*/
virtual GameObject* create_object(const lisp::Lisp& reader) = 0;
-
- // hack for now will be removed later
- virtual GameObject* create_object(const Vector& )
- {
- return 0;
- }
};
typedef std::map<std::string, Factory*> Factories;
/** comment from Matze:
* Yes I know macros are evil, but in this specific case they save
* A LOT of typing and evil code duplication.
- * I'll happily acceppt alternatives if someone can present me one that does
+ * I'll happily accept alternatives if someone can present me one that does
* not involve typing 4 or more lines for each object class
*/
#define IMPLEMENT_FACTORY(CLASS, NAME) \