private static Creature CreateSkeletonWarrior(Vector2 worldIndex, World world) { return(new Creature("Skeleton Warrior", worldIndex, MovementType.Walking, new Stat(10), new Stat(5), new RandomTurnStrategy(1), new WalkingCreatureDrawStrategy(ContentHelper.Content.Load <Texture2D>("SkeletonWarrior")), new StandardDeathStrategy(), new StandardAttackStrategy(), world, RemainsFactory.CreateBones(worldIndex, world))); }
public PlayerCharacter(Vector2 worldIndex, World world) { _tileImage = ContentHelper.Content.Load <Texture2D>("HumanWarrior"); WorldIndex = worldIndex; _world = world; Weapon = WeaponFactory.CreateSword(new Vector2(0, 0), world); Name = "Player"; Health = new Stat(25); Mana = new Stat(20); MovementType = MovementType.Walking; Inventory = new List <IItem>(); Spells = new List <ISpell>(); TemporaryEffects = new List <ITemporaryEffect>(); ViewDistance = new Stat(20); Inventory.Add((IItem)Weapon); Remains = RemainsFactory.CreateBones(new Vector2(0, 0), world); Spells.Add(SpellFactory.CreateHealSelfSpell(world)); Spells.Add(SpellFactory.CreateFireballSpell(world)); Spells.Add(SpellFactory.CreateInfernoSpell(world)); Spells.Add(SpellFactory.CreateFlameSpell(world)); Spells.Add(SpellFactory.CreateFirewallSpell(world)); Spells.Add(SpellFactory.CreateTeleportSpell(world)); }