equal
deleted
inserted
replaced
38 #include <QByteArray> |
38 #include <QByteArray> |
39 #include <QTextStream> |
39 #include <QTextStream> |
40 #include <QFile> |
40 #include <QFile> |
41 #include "game.h" |
41 #include "game.h" |
42 #include "hwconsts.h" |
42 #include "hwconsts.h" |
43 #include "gameconfig.h" |
43 #include "gameuiconfig.h" |
44 |
44 |
45 HWGame::HWGame(GameConfig * config) |
45 HWGame::HWGame(GameUIConfig * config, GameCFGWidget * gamecfg) |
46 { |
46 { |
47 this->config = config; |
47 this->config = config; |
|
48 this->gamecfg = gamecfg; |
48 TeamCount = 0; |
49 TeamCount = 0; |
49 seed = ""; |
50 seed = ""; |
50 } |
51 } |
51 |
52 |
52 void HWGame::NewConnection() |
53 void HWGame::NewConnection() |
84 { |
85 { |
85 SendIPC(QString("eseed %1").arg(seed)); |
86 SendIPC(QString("eseed %1").arg(seed)); |
86 SendIPC(QString("etheme %1").arg(GetThemeBySeed())); |
87 SendIPC(QString("etheme %1").arg(GetThemeBySeed())); |
87 //SENDIPC("emap test"); |
88 //SENDIPC("emap test"); |
88 SENDIPC("TL"); |
89 SENDIPC("TL"); |
89 SENDIPC("e$gmflags 0"); |
90 SendIPC(QString("e$gmflags %1").arg(gamecfg->getGameFlags())); |
90 SENDIPC("eaddteam"); |
91 SENDIPC("eaddteam"); |
91 SendTeamConfig(0); |
92 SendTeamConfig(0); |
92 SENDIPC("ecolor 65535"); |
93 SENDIPC("ecolor 65535"); |
93 SENDIPC("eadd hh0 1"); |
94 SENDIPC("eadd hh0 1"); |
94 SENDIPC("eadd hh1 1"); |
95 SENDIPC("eadd hh1 1"); |