mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-04-11 00:30:19 +02:00
Server heavy refactoring 1 (not functionnal)
This commit is contained in:
19
server/traque-back/src/states/finished_state.js
Normal file
19
server/traque-back/src/states/finished_state.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import { GameState } from "@/states/game_state.js";
|
||||
import { FinishedTeamMapper } from "@/team/mapper/finished_team_mapper.js";
|
||||
|
||||
export class FinishedState extends GameState {
|
||||
constructor(manager) {
|
||||
super(manager, new FinishedTeamMapper());
|
||||
}
|
||||
|
||||
static get stateName () {
|
||||
return "finished";
|
||||
}
|
||||
|
||||
// State functions
|
||||
|
||||
updateLocation(team, coords) {
|
||||
team.updateLocation(coords);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user