public Enemy CreateSwordsman(Vector2 location) { Enemy enemy; Texture2D sprite = creatureLoader.Get("human1"); int hitPoints = 40; float baseSpeed = 0.15f; Weapon weapon = weaponFactory.CreateSword(); enemy = new Enemy("Swordsman", location, 5, sprite, new Vector2(0, 0), hitPoints, healthBarSprite, weapon, blankW, blankS, blankC, baseSpeed, pathfinder.Copy()); enemy.SourceRectangle = new Rectangle(0, 0, sprite.Height, sprite.Height); //So that animations work - each individual frame is square enemy.UpdateDrawRectangleAnimated(); return(enemy); }