[server] build fix

This commit is contained in:
2018-08-09 19:39:49 +03:00
parent 085431fe73
commit d6cf708035
2 changed files with 4 additions and 4 deletions

View File

@@ -1,13 +1,13 @@
package ru.m.tankz.control;
import ru.m.tankz.game.Player;
import ru.m.tankz.Type;
class NoneControlFactory implements IControlFactory {
public function new() {}
public function build(player:Player):Control {
public function build(id:PlayerId, type:ControlType):Control {
return null;
}
}

View File

@@ -1,8 +1,8 @@
package ru.m.tankz.server.game;
import ru.m.tankz.game.GameState;
import ru.m.tankz.network.NetworkGame;
import ru.m.tankz.preset.ClassicGame;
import ru.m.tankz.game.GameSave;
import ru.m.tankz.proto.pack.StartGameResponse;
import ru.m.tankz.proto.pack.LeaveGameResponse;
import ru.m.tankz.proto.pack.JoinGameResponse;
@@ -116,7 +116,7 @@ class GameManager {
public function start() {
gameInfo.setState(GameStateProto.STARTED);
game = new NetworkGame(ClassicGame.TYPE);
game.start(new GameSave({type: ClassicGame.TYPE, presetId: ClassicGame.PLAYER1, level: 0}));
game.start(new GameState(ClassicGame.TYPE,ClassicGame.PLAYER1));
timer = new NekoTimer(30);
timer.run = update;
broadcast(new Response().setStartGame(new StartGameResponse().setGame(gameInfo)));