Archive Browser
Download aitest2.zip, last updated 07/07/2010 (14.13 KB)
Download- md5: 054e65a63a4282e39625d1c0635f87e7
using System.Drawing;
using System.Collections.Generic;
namespace AiTest
{
class Map
{
#region Private Member Declarations
private List<Sprite> _sprites;
#endregion Private Member Declarations
#region Public Constructors
public Map(Size size)
{
this.Size = size;
this.Tiles = new Tile[size.Width, size.Height];
this.Sprites = new List<Sprite>();
}
#endregion Public Constructors
#region Public Methods
public bool IsScenery(Point location)
{
return !this.IsScenery(this.Tiles[location.X, location.Y]);
}
public bool IsScenery(Tile tile)
{
return tile.Solid;
}
#endregion Public Methods
#region Public Properties
public Size Size { get; set; }
public List<Sprite> Sprites
{
get { return _sprites; }
set { _sprites = value; }
}
public Tile[,] Tiles { get; set; }
#endregion Public Properties
}
}
Donate
This software may be used free of charge, but as with all free software there are costs involved to develop and maintain.
If this site or its services have saved you time, please consider a donation to help with running costs and timely updates.
Donate