Line | |
---|
1 | /* |
---|
2 | |
---|
3 | #include <iostream> |
---|
4 | using namespace std; |
---|
5 | |
---|
6 | |
---|
7 | #ifndef __DUMMY__ |
---|
8 | #define __DUMMY__ |
---|
9 | |
---|
10 | /* |
---|
11 | class SomeNode |
---|
12 | { |
---|
13 | virtual void loadParams(const XMLNode* root); |
---|
14 | }; |
---|
15 | |
---|
16 | class 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 | |
---|
31 | class 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 | |
---|
45 | inline LightManager::LightManager() |
---|
46 | { |
---|
47 | |
---|
48 | } |
---|
49 | |
---|
50 | inline void LightManager::addLight(const char* diff, const char* coord) |
---|
51 | { |
---|
52 | cout << "Adding light: "<< diff << " coords: " << coord << "\n"; |
---|
53 | } |
---|
54 | |
---|
55 | inline void LightManager::setAmbient(const char* amb) |
---|
56 | { |
---|
57 | cout << "Setting ambient light: "<< amb << "\n"; |
---|
58 | } |
---|
59 | |
---|
60 | |
---|
61 | |
---|
62 | class CameraManager |
---|
63 | { |
---|
64 | public: |
---|
65 | void addCamera(); |
---|
66 | }; |
---|
67 | |
---|
68 | inline void CameraManager::addCamera() |
---|
69 | { |
---|
70 | cout << "Loading Camera\n"; |
---|
71 | } |
---|
72 | |
---|
73 | class ScriptManager |
---|
74 | { |
---|
75 | public: |
---|
76 | void addScript(const char* file); |
---|
77 | }; |
---|
78 | |
---|
79 | inline void ScriptManager::addScript(const char* file) |
---|
80 | { |
---|
81 | cout << "Loading Lua Script"<<file<<"\n"; |
---|
82 | } |
---|
83 | |
---|
84 | class WorldManager |
---|
85 | { |
---|
86 | public: |
---|
87 | void addScript(const char* file); |
---|
88 | }; |
---|
89 | |
---|
90 | inline 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.