2019-04-22 09:24:16 +02:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using CzokoŚmieciarka.MonoGameView.DataModels.Interfaces;
|
2019-04-22 14:17:44 +02:00
|
|
|
|
using Microsoft.Xna.Framework;
|
|
|
|
|
using Microsoft.Xna.Framework.Content;
|
|
|
|
|
using Microsoft.Xna.Framework.Graphics;
|
2019-04-22 09:24:16 +02:00
|
|
|
|
|
|
|
|
|
namespace CzokoŚmieciarka.MonoGameView.DataModels.Models
|
|
|
|
|
{
|
2019-04-22 14:17:44 +02:00
|
|
|
|
public class House : IDrawables
|
2019-04-22 09:24:16 +02:00
|
|
|
|
{
|
2019-04-22 14:17:44 +02:00
|
|
|
|
private Coords Coords;
|
|
|
|
|
|
|
|
|
|
public House(Coords coords)
|
|
|
|
|
{
|
|
|
|
|
Coords = coords;
|
|
|
|
|
}
|
|
|
|
|
public void Draw(ContentManager content, SpriteBatch batch, int size)
|
|
|
|
|
{
|
|
|
|
|
batch.Draw(content.Load<Texture2D>("house"), new Rectangle(Coords.X * 500 / size, Coords.Y * 500 / size, 500 / size, 500 / size), Color.White);
|
|
|
|
|
}
|
2019-04-22 09:24:16 +02:00
|
|
|
|
}
|
|
|
|
|
}
|