2019-04-23 06:32:35 +02:00
|
|
|
|
using CzokoŚmieciarka.MonoGameView.DataModels.GeneralModels.Models;
|
|
|
|
|
using CzokoŚmieciarka.MonoGameView.DataModels.Interfaces;
|
|
|
|
|
using CzokoŚmieciarka.MonoGameView.DataModels.Interfaces.TrashCans;
|
|
|
|
|
using CzokoŚmieciarka.MonoGameView.DataModels.Models;
|
|
|
|
|
using Microsoft.Xna.Framework;
|
|
|
|
|
using Microsoft.Xna.Framework.Graphics;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace MonoGameView.DataModels.Models
|
|
|
|
|
{
|
|
|
|
|
public class EmptyHouse : IDrawables, IGarbageLocalization, ICloneable
|
|
|
|
|
{
|
|
|
|
|
public Coords Coords { get; }
|
|
|
|
|
|
|
|
|
|
public EmptyHouse(Coords coords)
|
|
|
|
|
{
|
|
|
|
|
Coords = coords;
|
|
|
|
|
TrashCans = new List<ATrashCan>();
|
|
|
|
|
}
|
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public object Clone()
|
|
|
|
|
{
|
2019-05-13 17:57:32 +02:00
|
|
|
|
return new EmptyHouse((Coords)Coords.Clone());
|
2019-04-23 06:32:35 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-05-13 17:57:32 +02:00
|
|
|
|
public List<ATrashCan> TrashCans { get; set; }
|
2019-04-23 06:32:35 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|