source:
orxonox.OLD/trunk/src/world_entities/terrain.h
@
6210
Last change on this file since 6210 was 5500, checked in by bensch, 19 years ago | |
---|---|
File size: 973 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 | |
[5405] | 15 | // FORWARD DECLARATION |
[4889] | 16 | class SpatialSeparation; |
[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); |
[4746] | 30 | virtual ~Terrain(); |
[4597] | 31 | |
[4746] | 32 | void init(); |
[4607] | 33 | void loadParams(const TiXmlElement* root); |
34 | ||
[5465] | 35 | void loadVegetation(const char* vegetationFile); |
36 | ||
[3564] | 37 | void buildDebugTerrain(DebugTerrain debugTerrain); |
[5500] | 38 | virtual void draw() const; |
[3245] | 39 | |
[4919] | 40 | public: |
41 | SpatialSeparation* ssp; | |
42 | ||
[3245] | 43 | private: |
[5465] | 44 | Model* vegetation; |
45 | int objectList; | |
[1853] | 46 | }; |
47 | ||
[3559] | 48 | #endif /* _TERRAIN_H */ |
Note: See TracBrowser
for help on using the repository browser.