Exemple #1
0
 public override void Duel(Alliance a)
 {
     Console.WriteLine(this.GetType().Name + " backstab " + a.GetType().Name);
 }
Exemple #2
0
 // constructor
 public Warcraft(ContinentFactory factory)
 {
     _alliance = factory.CreateHero();
     _horde    = factory.CreateVillain();
 }
Exemple #3
0
 public abstract void Duel(Alliance a);
Exemple #4
0
 public override void Duel(Alliance a)
 {
     Console.WriteLine(this.GetType().Name + " shadow bolt " + a.GetType().Name);
 }