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); }
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"); }
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); }
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); }