Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 public Manager(ICombo combo, IHarass harass, IJungleClear jungleClear, ILaneClear laneClear, ILasthit lasthit)
 {
     _combo       = combo;
     _harass      = harass;
     _jungleClear = jungleClear;
     _laneClear   = laneClear;
     _lasthit     = lasthit;
 }
Exemplo n.º 4
0
 static ComboParser()
 {
     _combos = new ICombo[] {
         new Combos.Single(),
         new Combos.Street(),
         new Combos.Set(),
         new Combos.Quad(),
         new Combos.Flash(),
         new Combos.FlashRoyale()
     };
 }
Exemplo n.º 5
0
 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;
 }
Exemplo n.º 6
0
 public void SetState(ICombo state)
 {
     State = state;
 }
Exemplo n.º 7
0
 //constractor
 public WCombo(ICombo InterfazCombo)
 {
     objCombo  = new CCombo();
     Manager   = new ManagerBD();
     ViewCombo = InterfazCombo;
 }
Exemplo n.º 8
0
 public Form1()
 {
     InitializeComponent();
     db   = cont.DataBase();
     comb = cont_combo.NewCombo();
 }
Exemplo n.º 9
0
 protected Burgers(ICombo combo)
 {
     Combo = combo;
 }
Exemplo n.º 10
0
 public BeefBurger(ICombo combo) : base(combo)
 {
 }
Exemplo n.º 11
0
 public ChickenBurger(ICombo combo) : base(combo)
 {
 }