Terrain.h

Go to the documentation of this file.
00001 #ifndef TERRAIN_H_
00002 #define TERRAIN_H_
00003 
00004 #include "../common/Parser.h"
00005 
00006 namespace scripts
00007 {
00008     class Terrain
00009     {
00010         private:
00011 
00012             // the parser object that holds all the block data
00013             Parser parser;
00014 
00015             // the blocks with the data - destroyed with the parser
00016             std::vector<DataBlock*> _blocks;
00017 
00018         public:
00019             Terrain ();
00020 
00021             virtual ~Terrain ();
00022 
00023             // creates a terrain defintion for every selected texture
00024             void generateTerrainDefinitionsForTextures ();
00025 
00026             // shows existing terrain definitions
00027             void showTerrainDefinitionForTexture ();
00028 
00029             const DataBlock* getTerrainDefitionForTexture (const std::string& texture);
00030     };
00031 }
00032 
00033 #endif /* TERRAIN_H_ */

Generated by  doxygen 1.6.2