public LegoStoragePlace(IStoragePlace above, IStoragePlace underneath, IPlace placeInFront, IContainer container, int level)
 {
     Above = above;
     Underneath = underneath;
     PlaceInFront = placeInFront;
     Empty = false;
     Container = container;
     Level = level;
 }
 public LegoStoragePlace(IStoragePlace above, IStoragePlace underneath, IPlace placeInFront, int level)
 {
     Above = above;
     Underneath = underneath;
     PlaceInFront = placeInFront;
     Empty = true;
     Container = null;
     Level = level;
 }
 public void drop(IStoragePlace storagePlace)
 {
     if (storagePlace.Empty && storagePlace.Above.Empty) {
         goTo (storagePlace.PlaceInFront);
         conn.sendMessage ("drop" + storagePlace.Level);
         storagePlace.Container = currContainer;
         storagePlace.Empty = false;
         currContainer = null;
     }
 }
Example #4
0
 public void drop(IStoragePlace storagePlace)
 {
     throw new NotImplementedException ();
 }