Beispiel #1
0
        public AttackDieFace Roll()
        {
            var total = new AttackDieFace();

            this.ForEach(die => total += die.Roll());
            return(total);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 public void Mis()
 {
     this.Attack = AttackDieFace.Mis();
 }
Beispiel #4
0
 public DiceOutcome(AttackDieFace attack, DefenceDieFace defence)
 {
     this.Attack  = attack;
     this.Defence = defence;
 }