public TheWindArcanian(Vector2 position, PlayerIndex thePlayerIndex) : base(position, thePlayerIndex) { // Initialize texture texArcanianRight = "Arcanian/windBirdRight"; texArcanianLeft = "Arcanian/windBirdLeft"; texDyingRight = "Arcanian/windBirdDead_right"; texDyingLeft = "Arcanian/windBirdDead_left"; texShield = "Arcanian/windshieldsprite"; Texture = texArcanianRight; // Initialize name mName = "Wind Arcanian"; // Initialize shield mShieldArt.SetTextureSpriteSheet(texShield, 4, 1, 0); mShieldArt.UseSpriteSheet = true; // Initliaze wind skills WindBlade windBlade = new WindBlade(); MultipleWindBlade multipleWindBlade = new MultipleWindBlade(); MegaWindBlade megaWindBlade = new MegaWindBlade(); // Initialize skill set with wind skills mSkillSet = new SkillSet(windBlade, multipleWindBlade, megaWindBlade, null); // Add skills to global list of skills //G.ListOfSkills.Add(windBlade); //G.ListOfSkills.Add(multipleWindBlade); //G.ListOfSkills.Add(megaWindBlade); }
protected override Skill MakeSkill(GamePadState playerController) { Skill newSkill = new Skill(); if (playerController.Buttons.A == ButtonState.Pressed) { newSkill = new WindBlade(); } else if (playerController.Buttons.B == ButtonState.Pressed) { newSkill = new MultipleWindBlade(); } else if (playerController.Buttons.Y == ButtonState.Pressed) { newSkill = new MegaWindBlade(); } return newSkill; }