Beispiel #1
0
        public Farmer()
        {
            this._void = new TransportObject(" ");

            var dog     = new TransportObject("狗");
            var chicken = new TransportObject("雞", dog);
            var rice    = new TransportObject("米", chicken);

            this.LeftShore = new Queue <TransportObject>(new[]
            {
                dog, rice, chicken
            });
            this.RightShore = new Queue <TransportObject>();
        }
Beispiel #2
0
 internal StatusReportEventArgs(Queue <TransportObject> leftShore, TransportObject ship, Queue <TransportObject> rightShore)
 {
     this.LeftShore  = leftShore;
     this.Ship       = ship;
     this.RightShore = rightShore;
 }