예제 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="GamePlayViewModel"/> class.
        /// </summary>
        /// <param name="owner">The <see cref="GameMenuScreen"/> that owns this view model.</param>
        /// <param name="escMenuDialog">The escape menu dialog box used by this screen.</param>
        public GamePlayViewModel(GamePlayScreen owner, EscMenuDialog escMenuDialog)
        {
            Contract.Require(owner, "owner");

            this.owner = owner;
            this.escMenuDialog = escMenuDialog;

            this.V1Color = Color.Red;
            this.V2Color = Color.Lime;
            this.V3Color = Color.Blue;
        }
예제 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="GamePlayViewModel"/> class.
        /// </summary>
        /// <param name="owner">The <see cref="GameMenuScreen"/> that owns this view model.</param>
        /// <param name="escMenuDialog">The escape menu dialog box used by this screen.</param>
        public GamePlayViewModel(GamePlayScreen owner, EscMenuDialog escMenuDialog)
        {
            Contract.Require(owner, "owner");

            this.owner         = owner;
            this.escMenuDialog = escMenuDialog;

            this.V1Color = Color.Red;
            this.V2Color = Color.Lime;
            this.V3Color = Color.Blue;
        }