Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: loadParams is now virtual.
ALL THE CLASSES HAVE TO CALL

SuperClass::loadParams(root);

isntead of:
static_cast<SuperClass*>(this)→loadParams(root);

which was quite stupid anyways

File size: 1.2 KB
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
[5405]15// FORWARD DECLARATION
[4889]16class SpatialSeparation;
[3543]17
[3564]18//! A simple method to call a desired debug world.
19enum DebugTerrain {TERRAIN_DAVE, TERRAIN_BENSCH};
20
21
[3559]22//! A Class to handle Terrain of orxonox
[4597]23class 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
[6341]32  virtual int       writeBytes(const byte* data, int length, int sender);
33  virtual int       readBytes(byte* data, int maxLength, int * reciever);
34  virtual void      writeDebug() const;
35  virtual void      readDebug() const;
36
[4746]37  void init();
[6512]38  virtual void loadParams(const TiXmlElement* root);
[4607]39
[5465]40  void loadVegetation(const char* vegetationFile);
41
[3564]42  void buildDebugTerrain(DebugTerrain debugTerrain);
[5500]43  virtual void draw() const;
[3245]44
[4919]45  public:
46    SpatialSeparation* ssp;
47
[3245]48 private:
[5465]49   Model*              vegetation;
50   int                 objectList;
[6341]51
[1853]52};
53
[3559]54#endif /* _TERRAIN_H */
Note: See TracBrowser for help on using the repository browser.