Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/terrain.h @ 5308

Last change on this file since 5308 was 5308, checked in by bensch, 19 years ago

orxonox/trunk: Fixed a reversive BUG in the ResourceManager:
Since resources, that depend on each other are loaded left tgo right they must be unlinked right to left… this cost me 3 hours.
What a luck i found this :)

File size: 885 bytes
RevLine 
[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]16class TiXmlElement;
[4889]17class SpatialSeparation;
[3543]18
[3564]19//! A simple method to call a desired debug world.
20enum DebugTerrain {TERRAIN_DAVE, TERRAIN_BENSCH};
21
22
[3559]23//! A Class to handle Terrain of orxonox
[4597]24class 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.