/**
 * Copyright (C) 2016  Alexander Schmidt
 *
 * This file is part of Seamulator.
 *
 * Seamulator is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Seamulator is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Seamulator.  If not, see <http://www.gnu.org/licenses/>.
 */

#pragma once

#include "watersurfacefwd.h"

#include <vector>

#include "surfacepoint.h"

class WaterSurface
{
 public:
  WaterSurface(int size, double unitLength);
  SurfacePoint& at(int x, int y);
  const SurfacePoint& at(int x, int y) const;
  int size() const;
  double extend() const;
  void draw() const;
  void drawSingleTile(int x, int y) const;

 private:
  std::vector<SurfacePoint> m_points;
  int m_size;
  double m_extend;
};
