Exemplo n.º 1
1
 void setCaveHeight(int height, boolean undo) {
   if (this.caveHeight != height) {
     Tile oldTile = new Tile(this);
     this.caveHeight = height;
     map.recalculateHeight();
     if (undo) {
       map.addUndo(this, oldTile);
     }
   }
 }
Exemplo n.º 2
1
 void setCaveSize(int size, boolean undo) {
   if (size < 30 || size > 300) {
     return;
   }
   if (this.caveSize != size) {
     Tile oldTile = new Tile(this);
     this.caveSize = size;
     map.recalculateHeight();
     if (undo) {
       map.addUndo(this, oldTile);
     }
   }
 }