示例#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;
 }