Changeset 4607 in orxonox.OLD for orxonox/trunk/src/world_entities
- Timestamp:
- Jun 12, 2005, 7:12:40 PM (20 years ago)
- Location:
- orxonox/trunk/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/terrain.cc
r4597 r4607 16 16 17 17 #include "terrain.h" 18 #include "stdincl.h" 18 19 19 #include "model.h" 20 20 #include "vector.h" 21 21 #include "glincl.h" 22 22 23 #include "factory.h" 24 #include "load_param.h" 25 23 26 using namespace std; 24 27 28 CREATE_FACTORY(Terrain); 25 29 26 30 /** … … 28 32 29 33 */ 30 Terrain::Terrain ( )34 Terrain::Terrain (const TiXmlElement* root) 31 35 { 32 36 this->init(); 37 this->loadParams(root); 33 38 } 34 39 … … 68 73 69 74 */ 70 Terrain::~Terrain ( )75 Terrain::~Terrain (void) 71 76 { 72 77 if (objectList) … … 82 87 } 83 88 84 89 void Terrain::loadParams(const TiXmlElement* root) 90 { 91 static_cast<WorldEntity*>(this)->loadParams(root); 92 93 //LoadParam<Terrain>(root, "DebugTerrain", ); 94 95 96 } 85 97 86 98 void Terrain::draw () -
orxonox/trunk/src/world_entities/terrain.h
r4597 r4607 14 14 15 15 // FORWARD DEFINITION \\ 16 class TiXmlElement; 16 17 17 18 //! A simple method to call a desired debug world. … … 24 25 25 26 public: 26 Terrain( );27 Terrain(const TiXmlElement* root = NULL); 27 28 Terrain(const char* fileName); 28 29 Terrain(DebugTerrain debugTerrain); 29 virtual ~Terrain(); 30 void init(); 30 virtual ~Terrain(void); 31 32 void init(void); 33 void loadParams(const TiXmlElement* root); 31 34 32 35 void buildDebugTerrain(DebugTerrain debugTerrain);
Note: See TracChangeset
for help on using the changeset viewer.