Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/xml-old/src/dummy.h @ 342

Last change on this file since 342 was 140, checked in by nicolape, 17 years ago

XML-Loader so far…

File size: 1.3 KB
Line 
1/*
2
3#include <iostream>
4using namespace std;
5
6
7#ifndef __DUMMY__
8#define __DUMMY__
9
10/*
11class SomeNode
12{
13        virtual void loadParams(const XMLNode* root);
14        };
15
16class Light : public SomeNode
17{
18        public:
19                virual void loadParams(const XMLNode* root)
20               
21                {
22                        SomeNode::loadParams(root);
23                       
24                        root->getAttribute("BLA");
25                       
26                        }
27        };
28
29
30
31class LightManager
32{
33        public:
34
35       
36                void addLight(const char* diff, const char* coord);
37                void setAmbient(const char* amb);
38
39  //  void loadParams(const XMLNode* root);
40  //
41                LightManager();
42
43};
44
45inline LightManager::LightManager()
46{
47
48}
49
50inline void LightManager::addLight(const char* diff, const char* coord)
51{
52        cout << "Adding light: "<< diff << " coords: " << coord << "\n";
53}
54
55inline void LightManager::setAmbient(const char* amb)
56{
57        cout << "Setting ambient light: "<< amb << "\n";
58}
59
60
61
62class CameraManager
63{
64        public:
65                void addCamera();
66};
67
68inline  void CameraManager::addCamera()
69{
70        cout << "Loading Camera\n";
71}
72
73class ScriptManager
74{
75        public:
76                void addScript(const char* file);
77};
78
79inline void ScriptManager::addScript(const char* file)
80{
81        cout << "Loading Lua Script"<<file<<"\n";
82}
83
84class WorldManager
85{
86        public:
87                void addScript(const char* file);
88};
89
90inline void WorldManager::addScript(const char* file)
91{
92        cout << "Loading Lua Script"<<file<<"\n";
93}
94
95#endif
96*/
Note: See TracBrowser for help on using the repository browser.