Click here to Skip to main content
11,411,494 members (65,352 online)
Click here to Skip to main content
Add your own
alternative version

Reversi for Windows Mobile

, 13 May 2009 CPOL
The game Reversi for Windows Mobile using the Compact Framework.
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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Ziad Elmalki

United States United States
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150414.5 | Last Updated 13 May 2009
Article Copyright 2009 by Ziad Elmalki
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid