public void Add(Thinker thinker) { cap.Prev.Next = thinker; thinker.Next = cap; thinker.Prev = cap.Prev; cap.Prev = thinker; }
public Thinkers(World world) { this.world = world; cap = new Thinker(); cap.Prev = cap.Next = cap; }
public void Remove(Thinker thinker) { thinker.ThinkerState = ThinkerState.Removed; }
private void InitThinkers() { cap = new Thinker(); cap.Prev = cap.Next = cap; }
public static void Return(Thinker thinker) { }