public Location(int id, string name, NPC npcHere = null, Monster monsterHere = null, Uri imgUri = null) { ID = id; Name = name; NPCHere = npcHere; MonsterHere = monsterHere; if (imgUri == null) { Image = new BitmapImage(GroundURI); } else { Image = new BitmapImage(imgUri); } }
private static void SpawnNPCs() { NPC mage = new NPC(NPC_ID_Mage, "Lucian", 10, 10, QuestByID(QUEST_ID_CLEAR_EAST_COAST), _wizardImgUri); NPC captain = new NPC(NPC_ID_Captain, "Liudvig", 10, 10, QuestByID(QUEST_ID_CLEAR_WEST_COAST), _captainImgUri); NPCs.Add(mage); NPCs.Add(captain); }