예제 #1
0
 public JunctionInput(Road road, MemoryBit inBit)
 {
     Line  = road;
     InBit = inBit;
     // ReadySensor = rs;
 }
예제 #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;
        }
예제 #3
0
 public JunctionOutput(Road road, MemoryBit outBit)
 {
     Sensor = road.InSensor;
     Line   = road;
     OutBit = outBit;
 }
예제 #4
0
 public void Add(Road r)
 {
     Roads.Add(r);
 }