Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/levelloader/src/factory.h @ 4225

Last change on this file since 4225 was 3530, checked in by chris, 20 years ago

orxonox/branches/levelloader: Got the system to compile, the basic backbone now runs. What remains to be done is implementing all necessary functions to load all vital classes into a world

File size: 716 bytes
Line 
1/*!
2    \file factory.h
3    \brief philosophy stuff
4*/
5
6#ifndef _FACTORY_H
7#define _FACTORY_H
8
9#include "stdincl.h"
10
11class BaseObject;
12
13//! The Factory is
14/**
15        Very philosophic description, huh?
16*/
17class Factory {
18
19 public:
20  Factory ();
21  ~Factory ();
22
23        virtual BaseObject* fabricate( TiXmlElement* root);
24        void initialize();
25  void registerFactory( Factory* factory);
26        void setClassname(char* name) {classname = name;}
27        char* getClassname() {return classname;};
28        void setNext( Factory* factory) {next = factory;}
29        Factory* getNext() {return next;}
30       
31 private:
32        char* classname;
33       
34  Factory* next;
35};
36
37// helper function
38
39const char* grabParameter( TiXmlElement* root, const char* name);
40
41#endif /* _FACTORY_H */
42
Note: See TracBrowser for help on using the repository browser.