Last change
on this file since 3777 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 | |
---|
11 | class BaseObject; |
---|
12 | |
---|
13 | //! The Factory is |
---|
14 | /** |
---|
15 | Very philosophic description, huh? |
---|
16 | */ |
---|
17 | class 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 | |
---|
39 | const char* grabParameter( TiXmlElement* root, const char* name); |
---|
40 | |
---|
41 | #endif /* _FACTORY_H */ |
---|
42 | |
---|
Note: See
TracBrowser
for help on using the repository browser.