1 #ifndef LIBR2C2_TERRAINTYPE_H_
2 #define LIBR2C2_TERRAINTYPE_H_
5 #include "objecttype.h"
9 class TerrainType: public ObjectType
12 class Loader: public Msp::DataFile::ObjectLoader<TerrainType>
15 Loader(TerrainType &);
23 class Loader: public Msp::DataFile::ObjectLoader<SurfaceType>
26 Loader(SurfaceType &);
35 std::vector<SurfaceType> surface_types;
37 float elevation_granularity;
40 TerrainType(const ArticleNumber &);
42 unsigned get_n_surface_types() const { return surface_types.size(); }
43 const SurfaceType &get_surface_type(unsigned) const;
44 float get_tile_size() const { return tile_size; }
45 float get_elevation_granularity() const { return elevation_granularity; }