23 lines
476 B
Haxe
23 lines
476 B
Haxe
package ru.m.tankz.game;
|
|
|
|
import ru.m.tankz.bot.Bot;
|
|
import ru.m.tankz.game.Game;
|
|
import ru.m.tankz.config.Config;
|
|
|
|
|
|
class ClassicGame extends Game {
|
|
|
|
public static var TYPE(default, never):GameType = 'classic';
|
|
|
|
public function new(config:Config) {
|
|
super(TYPE, config);
|
|
}
|
|
|
|
override public function start():Void {
|
|
super.start();
|
|
for (player in teams.get('bot').players) {
|
|
setControl(player.id, new Bot());
|
|
}
|
|
}
|
|
}
|