source:
orxonox.OLD/trunk/src/world_entities/terrain.h
@
5310
Last change on this file since 5310 was 5308, checked in by bensch, 19 years ago | |
---|---|
File size: 885 bytes |
Rev | Line | |
---|---|---|
[4597] | 1 | /*! |
[5039] | 2 | * @file terrain.h |
[4836] | 3 | * Defines and handles the terrain of the World |
[3329] | 4 | |
[4836] | 5 | @todo implement it |
[3559] | 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; |
[4889] | 17 | class SpatialSeparation; |
[3543] | 18 | |
[3564] | 19 | //! A simple method to call a desired debug world. |
20 | enum DebugTerrain {TERRAIN_DAVE, TERRAIN_BENSCH}; | |
21 | ||
22 | ||
[3559] | 23 | //! A Class to handle Terrain of orxonox |
[4597] | 24 | class Terrain : public WorldEntity |
[3559] | 25 | { |
[3543] | 26 | |
[1904] | 27 | public: |
[4607] | 28 | Terrain(const TiXmlElement* root = NULL); |
[4597] | 29 | Terrain(const char* fileName); |
[3564] | 30 | Terrain(DebugTerrain debugTerrain); |
[4746] | 31 | virtual ~Terrain(); |
[4597] | 32 | |
[4746] | 33 | void init(); |
[4607] | 34 | void loadParams(const TiXmlElement* root); |
35 | ||
[3564] | 36 | void buildDebugTerrain(DebugTerrain debugTerrain); |
[3559] | 37 | virtual void draw(); |
[3245] | 38 | |
[4919] | 39 | public: |
40 | SpatialSeparation* ssp; | |
41 | ||
[3245] | 42 | private: |
[3559] | 43 | int objectList; |
[1853] | 44 | }; |
45 | ||
[3559] | 46 | #endif /* _TERRAIN_H */ |
Note: See TracBrowser
for help on using the repository browser.