Esempio n. 1
0
        private AbsztraktAllapot RelayTravel(SolarSystem neighbourSystem)
        {
            SolarSystemAllapot SA = new SolarSystemAllapot(neighbourSystem, targetSolarSystem, systems);

            if (!AllapotE())
            {
                return(null);
            }

            return(SA);
        }
Esempio n. 2
0
        public void FindTheWay(SolarSystem current, SolarSystem target)
        {
            AbsztraktAllapot SystemsAllapot = new SolarSystemAllapot(current, target, game.Systems);
            GrafKereso       Gk             = new BackTrack(5);
            Csucs            celcsucs       = Gk.Keres(new Csucs(SystemsAllapot));

            if (celcsucs == null)
            {
                Debug.Log("Nem lehet így megoldani!");
            }
            else
            {
                Csucs cs = celcsucs;
                while (cs != null)
                {
                    cs = cs.Szulo;
                }
            }
        }
Esempio n. 3
0
        public override bool Equals(object obj)
        {
            SolarSystemAllapot SSA = (SolarSystemAllapot)obj;

            return(SSA.currentSolarSystem.Name == currentSolarSystem.Name);
        }