static TO() { Wolf = new TO("狼"); Dog = new TO("狗", Wolf); Chicken = new TO("雞", Dog, Wolf); Rice = new TO("米", Chicken); }
public void Enqueue(TO o) { if (!this._q.Contains(o)) { this._q.Add(o); } }
public bool Enqueue(TO o) { if (!this.IsFill && !this._q.Contains(o)) { this._q.Enqueue(o); return(true); } return(false); }