protected override void Event1Handler() { if (!flag) { strategy = new Capra(); flag = true; base.Event1Handler(); } }
public Player2() { strategy = new Capra(); Subscribe(2, Event2Handler); }
//protected override void WhenIInvoke1()//unde am override, va folosi aceasta metoda //{ // strategy = new Capra(); //} protected override void Event2Handler() { strategy = new Capra(); }
public PlayLikeABoss() { strategy = new Capra(); Subscribe(1, Event1Handler); }