Пример #1
0
            public void FindAstrilde()
            {
                village CurrentVillage = this.Maeland;

                if (CurrentVillage.isAstrildeHere)
                {
                    Console.WriteLine("hugi Found astrilde!!! Celebrations! XOXO");
                }
                village NextVillage;

                NextVillage = CurrentVillage.Nextvillage;
            }
Пример #2
0
            public void FindAstrilde()
            {
                village CurrentVillage = this.Mealand;

                if (CurrentVillage.isAstrildeHere)
                {
                    Console.WriteLine("Hugi found Astrilde !!! Celebrations");
                }
                village NextVillage;

                NextVillage = CurrentVillage.Nextvillage;
            }
Пример #3
0
            public void initializemap()
            {
                Alst                   = new village();
                Alst.VillageName       = "Alst";
                Maeland                = new village();
                Maeland.VillageName    = " Maeland";
                Maeland.isAstrildeHere = true;
                schenig                = new village();
                schenig.VillageName    = "schenig";

                Alst.Nextvillage    = Maeland;
                Maeland.Nextvillage = schenig;
                schenig.Nextvillage = Alst;
            }
Пример #4
0
            public void IntializationMap()
            {
                Alst                   = new village();
                Alst.villageName       = "Alst";
                Mealand                = new village();
                Mealand.villageName    = "Mealand";
                Mealand.isAstrildeHere = true;
                Schening               = new village();
                Schening.villageName   = "Schening";

                Alst.Nextvillage     = Mealand;
                Mealand.Nextvillage  = Schening;
                Schening.Nextvillage = Alst;
            }
Пример #5
0
        public void run()
        {
            village toronto;

            toronto = new village();
            village a, b, c;

            toronto.villagename = "version a";
            a = toronto;
            Console.WriteLine(a.villagename);
            toronto             = new village();
            toronto.villagename = "version b";
            b = toronto;
            Console.WriteLine(b.villagename);
            toronto             = new village();
            toronto.villagename = "version c";
            c = toronto;
            Console.WriteLine(c.villagename);

            Console.ReadKey();
        }
Пример #6
0
 public void run()
 {
     maple             = new village();
     maple.villagename = "toronto";
     maple.nextvillage = toronto;
 }