Ejemplo n.º 1
0
 public JunctionInput(Road road, MemoryBit inBit)
 {
     Line  = road;
     InBit = inBit;
     // ReadySensor = rs;
 }
Ejemplo n.º 2
0
        public ForkLoader(MemoryInt pos, MemoryBit fl, MemoryBit fr, MemoryBit l, MemoryBit x, MemoryBit z, MemoryBit al, MemoryBit ar, MemoryBit am, Road inputLine, Road outputLine, Side mySide)
        {
            pos.Value = 55;

            Pos       = pos;
            ForkLeft  = fl;
            ForkRight = fr;
            Lift      = l;
            MovingX   = x;
            MovingZ   = z;
            AtLeft    = al;
            AtMiddle  = am;
            AtRight   = ar;

            AtSide = new MemoryBit[2] {
                AtRight, AtLeft
            };
            ForkSide = new MemoryBit[2] {
                ForkRight, ForkLeft
            };

            InputLine  = inputLine;
            OutputLine = outputLine;

            WhoAmI = mySide;
        }
Ejemplo n.º 3
0
 public JunctionOutput(Road road, MemoryBit outBit)
 {
     Sensor = road.InSensor;
     Line   = road;
     OutBit = outBit;
 }
Ejemplo n.º 4
0
 public void Add(Road r)
 {
     Roads.Add(r);
 }