示例#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();
 }