player.cs

来自「一个Csharp游戏 GUI based .NET application」· CS 代码 · 共 59 行

CS
59
字号
/* Author:  Diane Corney
 * Date:    September, 2007
 */
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace Yahtzee {

    class Player {
        private string name;
        private int combinationsToDo;
        private Score[] scores;
        private int firstRoll;

        public Player(string name, Label[] scoreLabels) {
        }

        public string Name {
            get {
                return name;
            }
        }

        public int FirstRoll {
            get {
                return firstRoll;
            }
            set {
                firstRoll = value;
            }
        }

        public void ScoreCombination(ScoreType scoreType, int[] diceValues) {
        }

        public int GetGrandTotal() {
            return 0;
        }

        public bool IsAvailable(ScoreType scoreType) {
            return false;
        }

        public void ShowScores() {
        }

        public bool IsFinished() {
            return false;
        }

        public void Load(Label[] scoreLabels) {
        }


    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?