コード例 #1
0
 public override void Block(Attack attack)
 {
     Console.WriteLine("Blocked on the third armor! No other armors are affected!");
 }
コード例 #2
0
 public abstract void Block(Attack attack);
コード例 #3
0
 public override void Block(Attack attack)
 {
     Console.WriteLine("Blocked on the second armor! Third Armor affected by how this handles it!");
 }
コード例 #4
0
 public void Defend(Attack attack)
 {
     this.armor.Handle(attack);
 }