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