예제 #1
0
 public RespListMgr()
 {
     //构造责任链
     bigboy    = new BigBoy(100, null);
     littleboy = new LittleBoy(0, bigboy);
 }
예제 #2
0
 public BigBoy(int weight, IRepNode next) : base(weight, next)
 {
 }
예제 #3
0
 public LittleBoy(int weight, IRepNode next) : base(weight, next)
 {
 }
예제 #4
0
 public IRepNode(int weight, IRepNode next)
 {
     this.weight = weight;
     this.next   = next;
 }