예제 #1
0
        public override void MoveCar()
        {
            if (next != null)
            {
                next.MoveCar();
            }
            if (Baan != null)
            {
                Baan.MoveCar();
            }

            if (Kar != null)
            {
                if (Stance == 0)
                {
                    next.Kar = Kar;
                    this.Kar = null;
                }
                if (Stance == 1)
                {
                    Baan.Kar = Kar;
                    this.Kar = null;
                }
            }
        }
예제 #2
0
 public void addBaan(Baan nextBaan)
 {
     if (next == null)
     {
         next = nextBaan;
     }
     else
     {
         next.addBaan(nextBaan);
     }
 }
예제 #3
0
 public void addBaan(Baan nextBaan)
 {
     if (next == null)
     {
         next = nextBaan;
     }
     else
     {
         next.addBaan(nextBaan);
     }
 }
예제 #4
0
 public override bool canMove(Baan previous)
 {
     if (Stance == 1)
     {
         return(previous == previous1);
     }
     if (Stance == 0)
     {
         return(previous == previous0);
     }
     return(false);
 }
예제 #5
0
 public override bool canMove(Baan previous)
 {
     if (Stance == 1)
     {
         return (previous == previous1);
     }
     if (Stance == 0)
     {
         return (previous == previous0);
     }
     return false;
 }
예제 #6
0
 public override string getInfoAll(String tekst)
 {
     tekst += "" + getInfo();
     if (next != null)
     {
         tekst = next.getInfoAll(tekst);
     }
     if (Baan != null)
     {
         tekst = tekst + "seperated track";
         tekst = Baan.getInfoAll(tekst);
     }
     tekst += "";
     return(tekst);
 }
예제 #7
0
 public virtual bool canMove(Baan previous)
 {
     return(true);
 }
예제 #8
0
 public virtual bool canMove(Baan previous)
 {
     return true;
 }