コード例 #1
0
ファイル: Dice.cs プロジェクト: jancr/Descent
        public DefenceDieFace Roll()
        {
            var total = new DefenceDieFace();

            this.ForEach(die => total += die.Roll());
            return(total);
        }
コード例 #2
0
ファイル: Dice.cs プロジェクト: jancr/Descent
        public override bool Equals(object obj)
        {
            DefenceDieFace other = obj as DefenceDieFace;

            if (other != null)
            {
                return(this.Shield == other.Shield);
            }
            return(false);
        }
コード例 #3
0
ファイル: Dice.cs プロジェクト: jancr/Descent
 public DiceOutcome(AttackDieFace attack, DefenceDieFace defence)
 {
     this.Attack  = attack;
     this.Defence = defence;
 }