diff --git a/client/src/server/servermanager.ts b/client/src/server/servermanager.ts index f1ec0a54..0f173803 100644 --- a/client/src/server/servermanager.ts +++ b/client/src/server/servermanager.ts @@ -339,12 +339,14 @@ export class ServerManager { this.PUT(data, callback); } + // TODO: Remove coalition scenicAAA(ID: number, coalition: string, callback: CallableFunction = () => {}) { var command = { "ID": ID, "coalition": coalition } var data = { "scenicAAA": command } this.PUT(data, callback); } + // TODO: Remove coalition missOnPurpose(ID: number, coalition: string, callback: CallableFunction = () => {}) { var command = { "ID": ID, "coalition": coalition } var data = { "missOnPurpose": command } diff --git a/client/src/unit/unit.ts b/client/src/unit/unit.ts index 320a3f7d..223edfcf 100644 --- a/client/src/unit/unit.ts +++ b/client/src/unit/unit.ts @@ -417,7 +417,7 @@ export abstract class Unit extends CustomMarker { else { this.#clearContacts(); this.#clearPath(); - this.#clearTarget(); + this.#clearTargetPosition(); } /* When the group leader is selected, if grouping is active, all the other group members are also selected */ @@ -774,7 +774,7 @@ export abstract class Unit extends CustomMarker { return this.getDatabaseEntry()?.canAAA === true; } - indirectFire() { + isIndirectFire() { return this.getDatabaseEntry()?.indirectFire === true; } @@ -931,6 +931,7 @@ export abstract class Unit extends CustomMarker { }); } + // TODO: Remove coalition scenicAAA() { var coalition = "neutral"; if (this.getCoalition() === "red") @@ -940,6 +941,7 @@ export abstract class Unit extends CustomMarker { getApp().getServerManager().scenicAAA(this.ID, coalition); } + // TODO: Remove coalition missOnPurpose() { var coalition = "neutral"; if (this.getCoalition() === "red") @@ -1413,7 +1415,7 @@ export abstract class Unit extends CustomMarker { } } else - this.#clearTarget(); + this.#clearTargetPosition(); } #drawTargetPosition(targetPosition: LatLng) { @@ -1425,7 +1427,7 @@ export abstract class Unit extends CustomMarker { this.#targetPositionPolyline.setLatLngs([new LatLng(this.#position.lat, this.#position.lng), new LatLng(targetPosition.lat, targetPosition.lng)]) } - #clearTarget() { + #clearTargetPosition() { if (getApp().getMap().hasLayer(this.#targetPositionMarker)) this.#targetPositionMarker.removeFrom(getApp().getMap());