X-Git-Url: http://git.treefish.org/~alex/seamulator.git/blobdiff_plain/94e405360849659ff951816a13cf510f11a7eee7..444591b1b4dcd7ea0fa37b6db29ac20d4722a72c:/watersurface.h?ds=sidebyside diff --git a/watersurface.h b/watersurface.h index bb0c77a..31e0e60 100644 --- a/watersurface.h +++ b/watersurface.h @@ -1,5 +1,7 @@ #pragma once +#include "watersurfacefwd.h" + #include #include "surfacepoint.h" @@ -7,11 +9,16 @@ class WaterSurface { public: - WaterSurface(int size); + WaterSurface(int size, double unitLength); SurfacePoint& at(int x, int y); + const SurfacePoint& at(int x, int y) const; int size() const; + double unitLength() const; + void draw() const; + void drawSingleTile(int x, int y) const; private: std::vector m_points; int m_size; + double m_unitLength; };