示例#1
0
文件: Dice.cs 项目: jancr/Descent
        public AttackDieFace Roll()
        {
            var total = new AttackDieFace();

            this.ForEach(die => total += die.Roll());
            return(total);
        }
示例#2
0
文件: Dice.cs 项目: jancr/Descent
        public override bool Equals(object obj)
        {
            AttackDieFace other = obj as AttackDieFace;

            if (other != null)
            {
                return((this.Hit == other.Hit) && (this.Power == other.Power) &&
                       (this.Surge == other.Surge) && (this.Range == other.Range));
            }
            return(false);
        }
示例#3
0
文件: Dice.cs 项目: jancr/Descent
 public void Mis()
 {
     this.Attack = AttackDieFace.Mis();
 }
示例#4
0
文件: Dice.cs 项目: jancr/Descent
 public DiceOutcome(AttackDieFace attack, DefenceDieFace defence)
 {
     this.Attack  = attack;
     this.Defence = defence;
 }