2019-03-20 12:34:03 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
2019-03-20 16:02:05 +01:00
|
|
|
|
using System.Windows.Media;
|
2019-03-20 18:27:11 +01:00
|
|
|
|
using System.Windows.Media.Imaging;
|
2019-03-20 12:34:03 +01:00
|
|
|
|
using CzokoŚmieciarka.DataModels.Models;
|
2019-03-26 22:47:45 +01:00
|
|
|
|
using CzokoŚmieciarka.WPF.Interfaces;
|
2019-03-20 12:34:03 +01:00
|
|
|
|
|
|
|
|
|
namespace CzokoŚmieciarka.WPF.Models
|
|
|
|
|
{
|
2019-03-26 22:47:45 +01:00
|
|
|
|
public class House : AObject
|
2019-03-20 12:34:03 +01:00
|
|
|
|
{
|
2019-03-27 00:49:55 +01:00
|
|
|
|
public List<Trash> Trashes = new List<Trash>(4);
|
2019-03-20 18:27:11 +01:00
|
|
|
|
public House(int columns, Coords location)
|
|
|
|
|
{
|
|
|
|
|
ImagePath = AppDomain.CurrentDomain.BaseDirectory + @"..\..\Images\house.png";
|
|
|
|
|
Image = new ImageBrush(new BitmapImage(new Uri(ImagePath)));
|
|
|
|
|
Location = new Coords(location.X, location.Y*columns);
|
2019-03-27 00:49:55 +01:00
|
|
|
|
Data = "";
|
2019-03-20 18:27:11 +01:00
|
|
|
|
}
|
2019-03-20 12:34:03 +01:00
|
|
|
|
}
|
|
|
|
|
}
|