Пример #1
0
 public LegoStoragePlace(IStoragePlace above, IStoragePlace underneath, IPlace placeInFront, IContainer container, int level)
 {
     Above = above;
     Underneath = underneath;
     PlaceInFront = placeInFront;
     Empty = false;
     Container = container;
     Level = level;
 }
Пример #2
0
 public LegoStoragePlace(IStoragePlace above, IStoragePlace underneath, IPlace placeInFront, int level)
 {
     Above = above;
     Underneath = underneath;
     PlaceInFront = placeInFront;
     Empty = true;
     Container = null;
     Level = level;
 }
Пример #3
0
 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;
     }
 }
Пример #4
0
 public void drop(IStoragePlace storagePlace)
 {
     throw new NotImplementedException ();
 }