Files
HexTowerDefense/dist/Simulation/Models/SimCell.js
2026-04-19 01:16:27 +02:00

50 lines
1014 B
JavaScript

export class SimCell {
_hex;
_distance;
_type;
_blockedType = -1;
_index;
_simTower = null;
_pathsToTarget = [];
constructor(hex, distance, type, index) {
this._hex = hex;
this._distance = distance;
this._type = type;
this._index = index;
}
;
get hex() {
return this._hex;
}
get distance() {
return this._distance;
}
get type() {
return this._type;
}
set type(value) {
this._type = value;
}
get blockedType() {
return this._blockedType;
}
set blockedType(value) {
this._blockedType = value;
}
get index() {
return this._index;
}
get simTower() {
return this._simTower;
}
set simTower(value) {
this._simTower = value;
}
get pathsToTarget() {
return this._pathsToTarget;
}
set pathsToTarget(value) {
this._pathsToTarget = value;
}
}
//# sourceMappingURL=SimCell.js.map