Spaces:
Running
Running
File size: 434 Bytes
4ee4376 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
import tile from './tile';
import * as CONST from '../../constants';
export default class zone extends tile {
constructor (options) {
options.type = CONST.T_ZONE;
options.layerDepth = CONST.DEPTH_ZONE;
super(options);
}
check () {
if (!super.check()) return false;
return true;
}
create () {
super.create();
if (this.cell.tiles.has(CONST.T_BUILDING)) this.sprite.setVisible(false);
}
} |