|
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using GameExample.Reversi;
using System.Drawing;
using GameExample.Properties;
namespace GameExample
{
public class GameScreenControl : TransparentControl, IHaveBackground
{
/// <summary>
/// The background image.
/// </summary>
private Image _backgroundImage;
/// <summary>
/// Initializes a new instance of the <see cref="GameScreenControl"/> class.
/// </summary>
/// <param name="game">The game.</param>
protected GameScreenControl()
{
_backgroundImage = GameStyles.BackgroundImage;
}
/// <summary>
/// The background image.
/// </summary>
public Image BackgroundImage
{
get
{
return _backgroundImage;
}
set
{
_backgroundImage = ImageUtil.ResizeImage(value, Size);
}
}
/// <summary>
/// Gets or sets the current game.
/// </summary>
/// <value>The current game.</value>
public virtual GameManager CurrentGame
{ get; set; }
/// <summary>
/// Resets this instance.
/// </summary>
public virtual void Reset()
{
}
}
}
|
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.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.