using CzokoŚmieciarka.MonoGameView.DataModels.Interfaces;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using MonoGameView.DataModels.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CzokoŚmieciarka.MonoGameView.DataModels.Models
{
    public class Road2 : IRoad2, IDrawables
    {
        private Coords Coords;

        public Road2(Coords coords)
        {
            Coords = coords;
        }

        public object Clone()
        {
            return new Road2((Coords)Coords.Clone());
        }

        public void Draw(SpriteBatch batch, int size, int width)
        {
            batch.Draw(ImageContainer.GetImage("road2"), new Rectangle(Coords.X * width / size, Coords.Y * width / size, width / size, width / size), Color.White);
        }
    }
}