Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 3993 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
RevLine 
[3504]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
[3530]11class BaseObject;
[3504]12
13//! The Factory is
14/**
15        Very philosophic description, huh?
16*/
17class Factory {
18
19 public:
20  Factory ();
21  ~Factory ();
22
[3525]23        virtual BaseObject* fabricate( TiXmlElement* root);
[3504]24        void initialize();
25  void registerFactory( Factory* factory);
[3530]26        void setClassname(char* name) {classname = name;}
27        char* getClassname() {return classname;};
28        void setNext( Factory* factory) {next = factory;}
29        Factory* getNext() {return next;}
[3504]30       
31 private:
32        char* classname;
33       
34  Factory* next;
35};
36
37// helper function
38
[3525]39const char* grabParameter( TiXmlElement* root, const char* name);
[3504]40
[3525]41#endif /* _FACTORY_H */
42
Note: See TracBrowser for help on using the repository browser.