예제 #1
0
 public void Attack(object target)
 {
     AttackStrategy?.Attack(target);
 }
예제 #2
0
 public void Attack()
 {
     AttackStrategy.Attack();
 }
예제 #3
0
 //Attacks with current attack strategy.
 public void Attack()
 {
     Console.Write("{0} {1} ", charType, name);
     attackStrategy.Attack();
 }