34 lines
949 B
C#
34 lines
949 B
C#
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;
|
|
using MonoGameView.DataModels.Models;
|
|
|
|
namespace CzokoŚmieciarka.MonoGameView.DataModels.Models
|
|
{
|
|
public class Road1 :IRoad1, IDrawables
|
|
{
|
|
private Coords Coords;
|
|
|
|
public Road1(Coords coords)
|
|
{
|
|
Coords = coords;
|
|
}
|
|
|
|
public object Clone()
|
|
{
|
|
return new Road1((Coords)Coords.Clone());
|
|
}
|
|
|
|
public void Draw(SpriteBatch batch, int size, int width)
|
|
{
|
|
batch.Draw(ImageContainer.GetImage("road1"), new Rectangle(Coords.X * width / size, Coords.Y * width / size, width / size, width / size), Color.White);
|
|
}
|
|
}
|
|
}
|