示例#1
0
 public void Add(Thinker thinker)
 {
     cap.Prev.Next = thinker;
     thinker.Next  = cap;
     thinker.Prev  = cap.Prev;
     cap.Prev      = thinker;
 }
示例#2
0
        public Thinkers(World world)
        {
            this.world = world;

            cap      = new Thinker();
            cap.Prev = cap.Next = cap;
        }
示例#3
0
 public void Remove(Thinker thinker)
 {
     thinker.ThinkerState = ThinkerState.Removed;
 }
示例#4
0
 private void InitThinkers()
 {
     cap      = new Thinker();
     cap.Prev = cap.Next = cap;
 }
示例#5
0
 public static void Return(Thinker thinker)
 {
 }