source:
orxonox.OLD/orxonox/trunk/src/world_entities/terrain.h
@
4607
Last change on this file since 4607 was 4607, checked in by bensch, 19 years ago | |
---|---|
File size: 836 bytes |
Rev | Line | |
---|---|---|
[4597] | 1 | /*! |
[3559] | 2 | \file terrain.h |
3 | \brief Defines and handles the terrain of the World | |
[3329] | 4 | |
[3559] | 5 | \todo implement it |
6 | ||
7 | The terrain should either be build from a Model a OBJModel or from a HeightMap. | |
[3245] | 8 | */ |
[1853] | 9 | |
[3559] | 10 | #ifndef _TERRAIN_H |
11 | #define _TERRAIN_H | |
[1853] | 12 | |
[3559] | 13 | #include "world_entity.h" |
[1853] | 14 | |
[3543] | 15 | // FORWARD DEFINITION \\ |
[4607] | 16 | class TiXmlElement; |
[3543] | 17 | |
[3564] | 18 | //! A simple method to call a desired debug world. |
19 | enum DebugTerrain {TERRAIN_DAVE, TERRAIN_BENSCH}; | |
20 | ||
21 | ||
[3559] | 22 | //! A Class to handle Terrain of orxonox |
[4597] | 23 | class Terrain : public WorldEntity |
[3559] | 24 | { |
[3543] | 25 | |
[1904] | 26 | public: |
[4607] | 27 | Terrain(const TiXmlElement* root = NULL); |
[4597] | 28 | Terrain(const char* fileName); |
[3564] | 29 | Terrain(DebugTerrain debugTerrain); |
[4607] | 30 | virtual ~Terrain(void); |
[4597] | 31 | |
[4607] | 32 | void init(void); |
33 | void loadParams(const TiXmlElement* root); | |
34 | ||
[3564] | 35 | void buildDebugTerrain(DebugTerrain debugTerrain); |
[3559] | 36 | virtual void draw(); |
[3245] | 37 | |
38 | private: | |
[3559] | 39 | int objectList; |
[1853] | 40 | }; |
41 | ||
[3559] | 42 | #endif /* _TERRAIN_H */ |
Note: See TracBrowser
for help on using the repository browser.