2019-04-22 16:50:40 +02:00
|
|
|
|
using CzokoŚmieciarka.MonoGameView.DataModels.Interfaces;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Microsoft.Xna.Framework;
|
|
|
|
|
using Microsoft.Xna.Framework.Content;
|
|
|
|
|
using Microsoft.Xna.Framework.Graphics;
|
2019-04-22 14:55:47 +02:00
|
|
|
|
using MonoGameView.DataModels.Models;
|
|
|
|
|
|
2019-04-22 16:50:40 +02:00
|
|
|
|
namespace CzokoŚmieciarka.MonoGameView.DataModels.Models
|
|
|
|
|
{
|
|
|
|
|
public class Road1 :IRoad1, IDrawables
|
|
|
|
|
{
|
|
|
|
|
private Coords Coords;
|
|
|
|
|
|
|
|
|
|
public Road1(Coords coords)
|
|
|
|
|
{
|
|
|
|
|
Coords = coords;
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-23 06:32:35 +02:00
|
|
|
|
public object Clone()
|
|
|
|
|
{
|
|
|
|
|
return new Road1((Coords)Coords.Clone());
|
|
|
|
|
}
|
|
|
|
|
|
2019-05-14 23:05:37 +02:00
|
|
|
|
public void Draw(SpriteBatch batch, int size, int width)
|
2019-04-22 16:50:40 +02:00
|
|
|
|
{
|
2019-05-14 23:05:37 +02:00
|
|
|
|
batch.Draw(ImageContainer.GetImage("road1"), new Rectangle(Coords.X * width / size, Coords.Y * width / size, width / size, width / size), Color.White);
|
2019-04-22 16:50:40 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|