X-Git-Url: http://git.treefish.org/~alex/seamulator.git/blobdiff_plain/40fe15ee6190427f3bbc5db4ff640442626cc3bb..6280f60567d99bd059818523fcdb0a710173b3d9:/include/sea.h?ds=sidebyside diff --git a/include/sea.h b/include/sea.h index 798b92d..01f8c92 100644 --- a/include/sea.h +++ b/include/sea.h @@ -13,19 +13,19 @@ class Sea { public: - Sea(WaterSurfacePtr surface); + Sea(WaterSurfacePtr surface, double windSpeed, double magicConstant); ~Sea(); Sea(const Sea&) = delete; Sea& operator=(const Sea&) = delete; void update(); private: - static const double PHILLIPS_CONSTANT; static const double GRAVITATIONAL_CONSTANT; WaterSurfacePtr m_surface; double m_windDirection[2]; double m_windSpeed; + double m_magicConstant; std::random_device m_randomDevice; std::mt19937 m_randomGenerator; std::normal_distribution<> m_normalDistribution;