Пример #1
0
 public Minion(AbstractFactory forBody, AbstractFactory forWeapon)
 {
     body   = forBody.CreateBody();
     weapon = forWeapon.CreateWeapon();
 }
Пример #2
0
 public Minion(AbstractFactory factory)
 {
     body   = factory.CreateBody();
     weapon = factory.CreateWeapon();
 }