Last change
on this file since 346 was
346,
checked in by rgrieder, 17 years ago
|
- adjusted the entire source to compile under windows visual studio too:
- added some ugly conversions
- changed some illegal code pieces (gcc however accepted it)
- added a few files from reto's framework to evade linker errors (no more dynamic linking)
- inserted some 'return true' to justify the return type
- excluded the levelLoader in the orxonox.cc (couldn't make it work, parsing error)
- wrote about 5 code #branches to compensate for missing usleep() under windows
|
File size:
519 bytes
|
Rev | Line | |
---|
[164] | 1 | |
---|
[341] | 2 | #include "xml/xmlParser.h" |
---|
[164] | 3 | #include "LightManager.h" |
---|
| 4 | |
---|
| 5 | namespace light |
---|
| 6 | { |
---|
| 7 | LightManager::LightManager() |
---|
| 8 | { |
---|
[346] | 9 | std::vector<Light> elements_ = *(new std::vector<Light>); |
---|
[164] | 10 | } |
---|
| 11 | |
---|
| 12 | void LightManager::loadParams(XMLNode xml) |
---|
| 13 | { |
---|
| 14 | if (!xml.isEmpty()) |
---|
| 15 | { |
---|
[346] | 16 | int nLights = xml.nChildNode((const wchar_t*)"light"); |
---|
[164] | 17 | for (int i=0; i<nLights;i++) |
---|
| 18 | { |
---|
[346] | 19 | Light l = *(new Light(xml.getChildNode((const wchar_t*)"light",i))); |
---|
| 20 | this->elements_.insert(elements_.end(),l); |
---|
[164] | 21 | } |
---|
| 22 | } |
---|
| 23 | |
---|
| 24 | } |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | } |
---|
| 28 | |
---|
Note: See
TracBrowser
for help on using the repository browser.