Example #1
0
 public ConsoleView(Player myPlayer, Pass pass, NPCList NPCs)
 {
     _myPlayer = myPlayer;
     _pass = pass;
     _NPCList = NPCs;
     InitializeConsoleWindow();
 }
 public ConsoleView(Player myPlayer, Pass pass, NPCList NPCs)
 {
     _myPlayer = myPlayer;
     _pass = pass;
     _NPCList = NPCs;
 }
        private void InitializeNPCs()
        {
            _NPCList = new NPCList();

            _NPCList.NPCs.Add(new NPC("Alemap", NPC.GenderType.None, NPC.RaceType.Beholder, 3));
            _NPCList.NPCs.Add(new NPC("Ellehcem the Short", NPC.GenderType.Female, NPC.RaceType.Troll, 2));
            _NPCList.NPCs.Add(new NPC("Snouz the Sneak", NPC.GenderType.Male, NPC.RaceType.Goblin, 1));

            //int NPCNumber = 0;

            //foreach (Cave cave in _pass.Caves)
            //{
            //    if (cave.CaveNPC != null)
            //    {
            //        _NPCList.NPCs[NPCNumber] = cave.CaveNPC;
            //        NPCNumber++;
            //    }
            //}
        }