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