Esempio n. 1
0
        public AraniaExumai()
        {
            InitializeComponent();

            List <String> spellNames = new List <string>();

            //spellNames.Add("Aguamenti");
            spellNames.Add("Reparo");
            spellNames.Add("Metelojinx");
            spellNames.Add("Tarantallegra");
            spellNames.Add("Locomotor");
            spellNames.Add("Incendio");
            spellNames.Add("WingardiumLeviosa");
            wandHandler = new WandHandler(pbStrokes, spellNames, delegate { castSpell(); });

            this.spellCast = false;
            this.shownEnd  = false;

            this.KeyPreview = true;
            this.KeyPress  += new System.Windows.Forms.KeyPressEventHandler(HandleKeys);
        }
Esempio n. 2
0
        public Werewolf()
        {
            InitializeComponent();

            List <String> spellNames = new List <string>();

            //spellNames.Add("Aguamenti");
            spellNames.Add("Reparo");
            spellNames.Add("Metelojinx");
            spellNames.Add("Tarantallegra");
            spellNames.Add("Locomotor");
            spellNames.Add("Incendio");
            spellNames.Add("WingardiumLeviosa");
            wandHandler = new WandHandler(pbStrokes, spellNames, delegate { castSpell(); });
            wandHandler.StartTracking();

            this.KeyPreview = true;
            this.KeyPress  += new System.Windows.Forms.KeyPressEventHandler(HandleKeys);

            sound = new System.Media.SoundPlayer(@"C:\Users\CLARISSA RAMOS\Documents\GitHub\wiiwandz\HarryParty\media\sounds\werewolf_howling_2.wav");
        }
Esempio n. 3
0
        public Werewolf()
        {
            InitializeComponent();

            var spellNames = new List<string>()
            {
                "Reparo",
                "Metelojinx",
                "Tarantallegra",
                "Locomotor",
                "Incendio",
                "WingardiumLeviosa"
            };
            //spellNames.Add("Aguamenti");
            wandHandler = new WandHandler(pbStrokes, spellNames, delegate { castSpell(); });
            wandHandler.StartTracking();

            KeyPreview = true;
            KeyPress += new KeyPressEventHandler(HandleKeys);

            sound = new SoundPlayer(SOUND);
        }
Esempio n. 4
0
        public AraniaExumai()
        {
            InitializeComponent();

            var spellNames = new List<string>()
            {
                "Reparo",
                "Metelojinx",
                "Tarantallegra",
                "Locomotor",
                "Incendio",
                "WingardiumLeviosa"
            };

            wandHandler = new WandHandler(pbStrokes, spellNames, delegate { castSpell(); });

            spellCast = false;
            shownEnd = false;

            KeyPreview = true;
            KeyPress += new KeyPressEventHandler(HandleKeys);
        }