示例#1
0
文件: Gate.cs 项目: colincapurso/Logx
 public ButtonGate(int x, int y)
     : base(x, y)
 {
     inputs = new Gate[] { null, null };
     HasInput = false;
     renderCode = 4;
 }
示例#2
0
文件: Gate.cs 项目: colincapurso/Logx
 public BulbGate(int x, int y)
     : base(x, y)
 {
     inputs = new Gate[] { null };
     renderCode = 7;
 }
示例#3
0
文件: Gate.cs 项目: colincapurso/Logx
 public OnGate(int x, int y)
     : base(x, y)
 {
     inputs = new Gate[] { null };
     HasInput = false;
     renderCode = 2;
 }
示例#4
0
文件: Gate.cs 项目: colincapurso/Logx
 public XorGate(int x, int y)
     : base(x, y)
 {
     inputs = new Gate[] { null, null };
     renderCode = 5;
 }
示例#5
0
文件: Gate.cs 项目: colincapurso/Logx
 public NotGate(int x, int y)
     : base(x, y)
 {
     inputs = new Gate[] { null };
     renderCode = 9;
 }
示例#6
0
文件: Gate.cs 项目: colincapurso/Logx
 public LinkGate(int x, int y)
     : base(x, y)
 {
     inputs = new Gate[] { null };
     renderCode = 10;
 }
示例#7
0
文件: Gate.cs 项目: colincapurso/Logx
 public EdgeGate(int x, int y)
     : base(x, y)
 {
     inputs = new Gate[] { null };
     renderCode = 12;
 }
示例#8
0
文件: Gate.cs 项目: colincapurso/Logx
 public AndGate(int x, int y)
     : base(x, y)
 {
     inputs = new Gate[] { null, null };
     renderCode = 0;
 }
示例#9
0
文件: Gate.cs 项目: colincapurso/Logx
 public ClockGate(int x, int y, int clockSpeed = 100)
     : base(x, y)
 {
     inputs = new Gate[] { null, null };
     renderCode = 11;
     lastChange = DateTime.Now;
     this.clockSpeed = clockSpeed;
 }