X-Git-Url: http://git.treefish.org/~alex/seamulator.git/blobdiff_plain/94e405360849659ff951816a13cf510f11a7eee7..0fcdcce0bba803bdb7d3165a3884e4e0f50553bc:/watersurface.h?ds=inline 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; };