equal
deleted
inserted
replaced
39 #include "gameuiconfig.h" |
39 #include "gameuiconfig.h" |
40 #include "predefteams.h" |
40 #include "predefteams.h" |
41 #include "pages.h" |
41 #include "pages.h" |
42 #include "hwconsts.h" |
42 #include "hwconsts.h" |
43 |
43 |
44 HWTeam::HWTeam(const QString & teamname, GameUIConfig * config) |
44 HWTeam::HWTeam(const QString & teamname) |
45 { |
45 { |
46 this->config = config; |
|
47 TeamName = teamname; |
46 TeamName = teamname; |
48 for (int i = 0; i < 8; i++) HHName[i].sprintf("hedgehog %d", i); |
47 for (int i = 0; i < 8; i++) HHName[i].sprintf("hedgehog %d", i); |
49 Grave = "Simple"; |
48 Grave = "Simple"; |
50 Fort = "Barrelhouse"; |
49 Fort = "Barrelhouse"; |
51 for(int i = 0; i < BINDS_NUMBER; i++) |
50 for(int i = 0; i < BINDS_NUMBER; i++) |
53 binds[i].action = cbinds[i].action; |
52 binds[i].action = cbinds[i].action; |
54 binds[i].strbind = cbinds[i].strbind; |
53 binds[i].strbind = cbinds[i].strbind; |
55 } |
54 } |
56 } |
55 } |
57 |
56 |
58 HWTeam::HWTeam(quint8 num, GameUIConfig * config) |
57 HWTeam::HWTeam(quint8 num) |
59 { |
58 { |
60 this->config = config; |
|
61 num %= PREDEFTEAMS_COUNT; |
59 num %= PREDEFTEAMS_COUNT; |
62 TeamName = QApplication::translate("teams", pteams[num].TeamName); |
60 TeamName = QApplication::translate("teams", pteams[num].TeamName); |
63 HHName[0] = QApplication::translate("teams", pteams[num].hh0name); |
61 HHName[0] = QApplication::translate("teams", pteams[num].hh0name); |
64 HHName[1] = QApplication::translate("teams", pteams[num].hh1name); |
62 HHName[1] = QApplication::translate("teams", pteams[num].hh1name); |
65 HHName[2] = QApplication::translate("teams", pteams[num].hh2name); |
63 HHName[2] = QApplication::translate("teams", pteams[num].hh2name); |