示例#1
0
 private void moveLeft(Zone currentZone)
 {
     currentZone.getZoneTileMap().getTile(y, x, bottomLevel).freeTile();
     currentZone.getZoneTileMap().getTile(y, x - 1, bottomLevel).fillTile(this);
     currentZone.getZoneTileMap().getTile(y - 1, x, bottomLevel + 1).freeTile();
     currentZone.getZoneTileMap().getTile(y - 1, x - 1, bottomLevel + 1).insertObject(this);
     x--;
 }
示例#2
0
 private void moveDown(Zone currentZone)
 {
     currentZone.getZoneTileMap().getTile(y, x, bottomLevel).freeTile();
     currentZone.getZoneTileMap().getTile(y + 1, x, bottomLevel).fillTile(this);
     currentZone.getZoneTileMap().getTile(y - 1, x, bottomLevel + 1).freeTile();
     currentZone.getZoneTileMap().getTile(y, x, bottomLevel + 1).insertObject(this);
     y++;
 }