示例#1
0
        static void Main(string[] args)
        {
            Console.SetWindowSize(120, 40);

            Console.ReadKey();
            Tavern tavern1 = new Tavern();

            tavern1.taName = "tavern1";
            Store store1 = new Store();

            store1.stName = "store1";
            TownSquare town1 = new TownSquare("town1", tavern1, store1);

            town1.Menu();

            Console.ReadKey();
        }
示例#2
0
        public TownSquare(string name, Tavern tavern, Store store)
        {
            this.name = name;

            librarian = new Protagonist();

            //Tavern
            taName      = "tavern";
            taMercenary = new PlayableChar[taMercQty];
            for (int i = 0; i < taMercenary.Length; i++)
            {
                taMercenary[i] = new PlayableChar();
            }

            //Store
            stName      = "store";
            stArmor     = new Armor[8];
            stAccessory = new Accessory[8];
            stWeapon    = new Weapon[8];

            //Outskirts
            outskirts = new Outskirts();
        }