Esempio n. 1
0
 public Lift DirectLiftTo(Location target)
 {
     Lift lift = new Lift().CallFrom(this);
     edgesFrom.Add(new Edge(this, target, lift));
     lift.name = string.Format("{0} - {1}", this, target);
     target.edgesFrom.Add(new Edge(target, this));
     return lift;
 }
Esempio n. 2
0
        public Lift DirectLiftTo(Location target)
        {
            Lift lift = new Lift().CallFrom(this);

            edgesFrom.Add(new Edge(this, target, lift));
            lift.name = string.Format("{0} - {1}", this, target);
            target.edgesFrom.Add(new Edge(target, this));
            return(lift);
        }
Esempio n. 3
0
 public Lift LiftTo(Location target, Lift lift = null, bool jumpBack = true)
 {
     if (lift == null) {
         lift = new Lift();
     }
     edgesFrom.Add(new Edge(this, target, lift));
     lift.name = string.Format("{0} - {1}", this, target);
     if (jumpBack) {
         target.edgesFrom.Add(new Edge(target, this));
     }
     return lift;
 }
Esempio n. 4
0
 public Lift JumpLiftTo(Location target, Lift lift = null, bool back = true)
 {
     if (lift == null)
     {
         lift = new Lift();
     }
     edgesFrom.Add(new Edge(this, target, lift));
     lift.name = string.Format("jump lift {0} - {1}", this, target);
     if (back)
     {
         target.edgesFrom.Add(new Edge(target, this, lift));
     }
     return(lift);
 }
Esempio n. 5
0
 public Edge(Location from, Location to, Lift lift = null)
 {
     this.from = from;
     this.lift = lift;
     this.to   = to;
 }
Esempio n. 6
0
 public Edge(Location from, Location to, Lift lift = null)
 {
     this.from = from;
     this.lift = lift;
     this.to = to;
 }
Esempio n. 7
0
 public Button(Lift lift)
 {
     this.target = lift;
 }
Esempio n. 8
0
 public Button(Lift lift)
 {
     this.target = lift;
 }