Ejemplo n.º 1
0
 public Player(int gold, int level, int experiencePoints, int strength, int intelligence, int vitality, int defense, int maximumHitPoints, int currentHitPoints)
 {
     Gold             = gold;
     Level            = level;
     ExperiencePoints = experiencePoints;
     Strength         = strength;
     Intelligence     = intelligence;
     Vitality         = vitality;
     Defense          = defense;
     Inventory        = new List <InventoryItem>();
     Quests           = new List <PlayerQuest>();
     CurrentHitPoints = currentHitPoints;
     MaximumHitPoints = maximumHitPoints;
     Inventory.Add(new InventoryItem(World.ItemByDB(World.ITEM_ID_RUSTY_SWORD), 1));
     Inventory.Add(new InventoryItem(World.ItemByDB(World.ITEM_ID_COTTON_HELM), 1));
     Inventory.Add(new InventoryItem(World.ItemByDB(World.ITEM_ID_COTTON_SHIRT), 1));
     Inventory.Add(new InventoryItem(World.ItemByDB(World.ITEM_ID_COTTON_PANTS), 1));
     Inventory.Add(new InventoryItem(World.ItemByDB(World.ITEM_ID_COTTON_GLOVES), 1));
     Inventory.Add(new InventoryItem(World.ItemByDB(World.ITEM_ID_CHAIN_MAIL), 1));
 }