X-Git-Url: http://git.treefish.org/~alex/seamulator.git/blobdiff_plain/31e7aa23c4e95b5e37f33938e9bb47ea82a3f4d9..e0522b705b9988ff07e42ab14689bd0b8c4745cb:/watersurface.h?ds=inline diff --git a/watersurface.h b/watersurface.h index cf5829e..31e0e60 100644 --- a/watersurface.h +++ b/watersurface.h @@ -9,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; };