public GuiBuilder(IWindow window) { xml = new XmlHandler(System.IO.Directory.GetCurrentDirectory(),"games.xml"); this.window = window; profile_combo = window.getProfileCombo(); tabs = window.getTabs(); profiles = new Dictionary<int, XmlNode>(); XmlNode games_node = xml.profile_xml.FirstChild; if(games_node.Name!="games") throw new Exception("nO LIKE"); profile_combo.addItem(null,"Please Select A Game"); profile_combo.setActiveIndex(0); int i = 1; foreach(XmlNode node in games_node.ChildNodes) { switch(node.Name) { case "game": profile_combo.addItem(node.Attributes["name"].Value,node.Attributes["title"].Value); profiles.Add(i,node); i++; break; } } profile_combo.selectionChanged += HandleProfile_comboselectionChanged; window.refresh(); }
public Manager(ICombo combo, IHarass harass, IJungleClear jungleClear, ILaneClear laneClear, ILasthit lasthit) { this.combo = combo; this.harass = harass; this.jungleClear = jungleClear; this.laneClear = laneClear; this.lasthit = lasthit; }
public Manager(ICombo combo, IHarass harass, IJungleClear jungleClear, ILaneClear laneClear, ILasthit lasthit) { _combo = combo; _harass = harass; _jungleClear = jungleClear; _laneClear = laneClear; _lasthit = lasthit; }
static ComboParser() { _combos = new ICombo[] { new Combos.Single(), new Combos.Street(), new Combos.Set(), new Combos.Quad(), new Combos.Flash(), new Combos.FlashRoyale() }; }
private void Awake() { animationcontroller_ = GameObject.Find("Player").GetComponent <AnimationController>(); Attack_A_listner = GameObject.Find("attack_A_box").GetComponent <Attack_Listner>(); Attack_B_listner = GameObject.Find("attack_b_box").GetComponent <Attack_Listner>(); Attack_C_listner = GameObject.Find("attack_c_box").GetComponent <Attack_Listner>(); state_comboA = new State_AttackA(this); state_comboB = new State_AttackB(this); state_comboEnd = new State_ComboDone(this); state_waitingroom = new State_ComboReady(this); Collider_Attack = GetComponent <Collider2D>(); State = state_waitingroom; _state = StateToSet.waitroom; CurrentState = _state; Hitinterval = 0; MaxhitInterval = 1; }
public void SetState(ICombo state) { State = state; }
//constractor public WCombo(ICombo InterfazCombo) { objCombo = new CCombo(); Manager = new ManagerBD(); ViewCombo = InterfazCombo; }
public Form1() { InitializeComponent(); db = cont.DataBase(); comb = cont_combo.NewCombo(); }
protected Burgers(ICombo combo) { Combo = combo; }
public BeefBurger(ICombo combo) : base(combo) { }
public ChickenBurger(ICombo combo) : base(combo) { }