Exemple #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;
                }
            }
        }
Exemple #2
0
 public void addBaan(Baan nextBaan)
 {
     if (next == null)
     {
         next = nextBaan;
     }
     else
     {
         next.addBaan(nextBaan);
     }
 }
Exemple #3
0
 public void addBaan(Baan nextBaan)
 {
     if (next == null)
     {
         next = nextBaan;
     }
     else
     {
         next.addBaan(nextBaan);
     }
 }
Exemple #4
0
 public override bool canMove(Baan previous)
 {
     if (Stance == 1)
     {
         return(previous == previous1);
     }
     if (Stance == 0)
     {
         return(previous == previous0);
     }
     return(false);
 }
Exemple #5
0
 public override bool canMove(Baan previous)
 {
     if (Stance == 1)
     {
         return (previous == previous1);
     }
     if (Stance == 0)
     {
         return (previous == previous0);
     }
     return false;
 }
Exemple #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);
 }
Exemple #7
0
 public virtual bool canMove(Baan previous)
 {
     return(true);
 }
Exemple #8
0
 public virtual bool canMove(Baan previous)
 {
     return true;
 }