]> git.treefish.org Git - seamulator.git/blobdiff - watersurface.h
Moved surface drawing routines to surface class
[seamulator.git] / watersurface.h
index bb0c77acddd2d7571c56d4c39c338f3cc701f1ba..7882197f2865ad95efc63eaf44e4a242a8b301c7 100644 (file)
@@ -1,5 +1,7 @@
 #pragma once
 
+#include "watersurfacefwd.h"
+
 #include <vector>
 
 #include "surfacepoint.h"
@@ -7,11 +9,15 @@
 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;
+  void draw() const;
+  void drawSingleTile(int x, int y) const;
 
  private:
   std::vector<SurfacePoint> m_points;
   int m_size;
+  double m_unitLength;
 };