.. _program_listing_file_src_polyhedron_noise_polyhedron.h: Program Listing for File noise_polyhedron.h =========================================== |exhale_lsh| :ref:`Return to documentation for file ` (``src/polyhedron/noise_polyhedron.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #pragma once #include "polyhedron/polyhedron_noise_processor.h" #include "polyhedron/ridge_based_polyhedron.h" namespace sota { class PolygonWrapper; class NoisePolyhedron : public RidgeBasedPolyhedron { GDCLASS(NoisePolyhedron, RidgeBasedPolyhedron) public: NoisePolyhedron() = default; NoisePolyhedron(const NoisePolyhedron& other) = delete; NoisePolyhedron(NoisePolyhedron&& other) = delete; // copying operator= defined inside GDCLASS NoisePolyhedron& operator=(NoisePolyhedron&& rhs) = delete; protected: static void _bind_methods() {} void set_material_parameters(Ref mat) override {} void configure_hexagon(PolygonWrapper& wrapper, Biome biome, int& id, Ref mat) override { _noise_processor.configure_hexagon(wrapper, biome, id, mat, *this); } void configure_pentagon(PolygonWrapper& wrapper, Biome biome, int& id, Ref mat) override { _noise_processor.configure_pentagon(wrapper, biome, id, mat, *this); } void process_cells() override { _noise_processor.process(*this); } private: friend PolyhedronNoiseProcessor; PolyhedronNoiseProcessor _noise_processor; }; } // namespace sota