[6404] | 1 | /* |
---|
| 2 | orxonox - the future of 3D-vertical-scrollers |
---|
| 3 | |
---|
| 4 | Copyright (C) 2004 orx |
---|
| 5 | |
---|
| 6 | This program is free software; you can redistribute it and/or modify |
---|
| 7 | it under the terms of the GNU General Public License as published by |
---|
| 8 | the Free Software Foundation; either version 2, or (at your option) |
---|
| 9 | any later version. |
---|
| 10 | |
---|
| 11 | ### File Specific: |
---|
| 12 | main-programmer: Patrick Boenzli |
---|
| 13 | */ |
---|
| 14 | |
---|
| 15 | #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD |
---|
| 16 | |
---|
| 17 | |
---|
| 18 | #include "single_player_world_data.h" |
---|
| 19 | |
---|
[7193] | 20 | #include "util/loading/load_param.h" |
---|
[6404] | 21 | |
---|
| 22 | |
---|
| 23 | using namespace std; |
---|
| 24 | |
---|
| 25 | |
---|
| 26 | /** |
---|
| 27 | * constructor of the GameWorldDataData |
---|
| 28 | */ |
---|
| 29 | SinglePlayerWorldData::SinglePlayerWorldData() |
---|
| 30 | : GameWorldData() |
---|
| 31 | {} |
---|
| 32 | |
---|
| 33 | |
---|
| 34 | /** |
---|
| 35 | * destructor for the GameWorldDataData |
---|
| 36 | */ |
---|
| 37 | SinglePlayerWorldData::~SinglePlayerWorldData() |
---|
| 38 | {} |
---|
| 39 | |
---|
| 40 | |
---|
| 41 | /** |
---|
| 42 | * initialize the GameWorldDataData |
---|
| 43 | */ |
---|
| 44 | ErrorMessage SinglePlayerWorldData::init() |
---|
| 45 | { |
---|
| 46 | /* call underlying function */ |
---|
[8717] | 47 | return GameWorldData::init(); |
---|
[6404] | 48 | } |
---|
| 49 | |
---|
| 50 | |
---|
| 51 | /** |
---|
| 52 | * loads the GUI data |
---|
| 53 | * @param root reference to the xml root element |
---|
| 54 | */ |
---|
[7370] | 55 | ErrorMessage SinglePlayerWorldData::loadGUI(const TiXmlElement* root) |
---|
[6404] | 56 | { |
---|
| 57 | /* call underlying function */ |
---|
[8717] | 58 | return GameWorldData::loadGUI(root); |
---|
[6404] | 59 | } |
---|
| 60 | |
---|
| 61 | |
---|
| 62 | /** |
---|
| 63 | * unloads the GUI data |
---|
| 64 | */ |
---|
| 65 | ErrorMessage SinglePlayerWorldData::unloadGUI() |
---|
| 66 | { |
---|
| 67 | /* call underlying function */ |
---|
[8717] | 68 | return GameWorldData::unloadGUI(); |
---|
[6404] | 69 | } |
---|
| 70 | |
---|
| 71 | |
---|
| 72 | /** |
---|
| 73 | * overloads the GameWorld::loadWorldEntities(...) class since the network WorldEntity loading is different |
---|
| 74 | * @param root reference to the xml root parameter |
---|
| 75 | */ |
---|
[7370] | 76 | ErrorMessage SinglePlayerWorldData::loadWorldEntities(const TiXmlElement* root) |
---|
[6404] | 77 | { |
---|
| 78 | /* call underlying function */ |
---|
[8717] | 79 | return GameWorldData::loadWorldEntities(root); |
---|
[6404] | 80 | } |
---|
| 81 | |
---|
| 82 | |
---|
| 83 | /** |
---|
| 84 | * unloads the world entities from the xml file |
---|
| 85 | */ |
---|
| 86 | ErrorMessage SinglePlayerWorldData::unloadWorldEntities() |
---|
| 87 | { |
---|
| 88 | /* call underlying function */ |
---|
[8717] | 89 | return GameWorldData::unloadWorldEntities(); |
---|
[6404] | 90 | } |
---|
| 91 | |
---|
| 92 | |
---|
| 93 | /** |
---|
| 94 | * loads the scene data |
---|
| 95 | * @param root reference to the xml root element |
---|
| 96 | */ |
---|
[7370] | 97 | ErrorMessage SinglePlayerWorldData::loadScene(const TiXmlElement* root) |
---|
[6404] | 98 | { |
---|
| 99 | /* call underlying function */ |
---|
[8717] | 100 | return GameWorldData::loadScene(root); |
---|
[6404] | 101 | } |
---|
| 102 | |
---|
| 103 | |
---|
| 104 | /** |
---|
| 105 | * unloads the scene data |
---|
| 106 | */ |
---|
| 107 | ErrorMessage SinglePlayerWorldData::unloadScene() |
---|
| 108 | { |
---|
| 109 | /* call underlying function */ |
---|
[8717] | 110 | return GameWorldData::unloadScene(); |
---|
[6404] | 111 | } |
---|
| 112 | |
---|