|
using System;
using System.Drawing;
using System.Windows.Forms;
using YinYang.CodeProject.Projects.SimplePathfinding.Properties;
namespace YinYang.CodeProject.Projects.SimplePathfinding.Scenarios
{
public class ImageFileScenario : PathScenario
{
#region | Properties |
/// <summary>
/// Determines whether this scenario is continuous.
/// </summary>
public override Boolean IsContinuous
{
get { return false; }
}
#endregion
#region | Constructors |
/// <summary>
/// Initializes a new instance of the <see cref="ImageFileScenario" /> class.
/// </summary>
/// <param name="width">The width.</param>
/// <param name="height">The height.</param>
/// <param name="form">The form.</param>
public ImageFileScenario(Int32 width, Int32 height, Form form) : base(width, height, form) { }
#endregion
#region << PathScenario >>
/// <summary>
/// See <see cref="PathScenario.OnDraw"/> for more details.
/// </summary>
protected override Bitmap OnCreateDefaultImage()
{
return Resources.Maze;
}
#endregion
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.