108 m_wins = 0; |
108 m_wins = 0; |
109 m_campaignProgress = 0; |
109 m_campaignProgress = 0; |
110 } |
110 } |
111 |
111 |
112 HWTeam::HWTeam(const HWTeam & other) : |
112 HWTeam::HWTeam(const HWTeam & other) : |
113 QObject(0) |
113 QObject(0) |
114 , OldTeamName(other.OldTeamName) |
114 , OldTeamName(other.OldTeamName) |
115 , m_name(other.m_name) |
115 , m_name(other.m_name) |
116 , m_grave(other.m_grave) |
116 , m_grave(other.m_grave) |
117 , m_fort(other.m_fort) |
117 , m_fort(other.m_fort) |
118 , m_flag(other.m_flag) |
118 , m_flag(other.m_flag) |
119 , m_voicepack(other.m_voicepack) |
119 , m_voicepack(other.m_voicepack) |
120 , m_hedgehogs(other.m_hedgehogs) |
120 , m_hedgehogs(other.m_hedgehogs) |
121 , m_difficulty(other.m_difficulty) |
121 , m_difficulty(other.m_difficulty) |
122 , m_binds(other.m_binds) |
122 , m_binds(other.m_binds) |
123 , m_numHedgehogs(other.m_numHedgehogs) |
123 , m_numHedgehogs(other.m_numHedgehogs) |
124 , m_color(other.m_color) |
124 , m_color(other.m_color) |
125 , m_isNetTeam(other.m_isNetTeam) |
125 , m_isNetTeam(other.m_isNetTeam) |
126 , m_owner(other.m_owner) |
126 , m_owner(other.m_owner) |
127 , m_campaignProgress(other.m_campaignProgress) |
127 , m_campaignProgress(other.m_campaignProgress) |
128 , m_rounds(other.m_rounds) |
128 , m_rounds(other.m_rounds) |
129 , m_wins(other.m_wins) |
129 , m_wins(other.m_wins) |
130 // , AchievementProgress(other.AchievementProgress) |
130 // , AchievementProgress(other.AchievementProgress) |
131 { |
131 { |
132 |
132 |
133 } |
133 } |
134 |
134 |
135 HWTeam & HWTeam::operator = (const HWTeam & other) |
135 HWTeam & HWTeam::operator = (const HWTeam & other) |
136 { |
136 { |
137 if(this != &other) |
137 if(this != &other) |
138 { |
138 { |
139 OldTeamName = other.OldTeamName; |
139 OldTeamName = other.OldTeamName; |
140 m_name = other.m_name; |
140 m_name = other.m_name; |
141 m_grave = other.m_grave; |
141 m_grave = other.m_grave; |
142 m_fort = other.m_fort; |
142 m_fort = other.m_fort; |
143 m_flag = other.m_flag; |
143 m_flag = other.m_flag; |
144 m_voicepack = other.m_voicepack; |
144 m_voicepack = other.m_voicepack; |
145 // m_hedgehogs = other.m_hedgehogs; |
145 // m_hedgehogs = other.m_hedgehogs; |
146 m_difficulty = other.m_difficulty; |
146 m_difficulty = other.m_difficulty; |
147 // m_binds = other.m_binds; |
147 // m_binds = other.m_binds; |
148 m_numHedgehogs = other.m_numHedgehogs; |
148 m_numHedgehogs = other.m_numHedgehogs; |
149 m_color = other.m_color; |
149 m_color = other.m_color; |
150 m_isNetTeam = other.m_isNetTeam; |
150 m_isNetTeam = other.m_isNetTeam; |
151 m_owner = other.m_owner; |
151 m_owner = other.m_owner; |
152 m_campaignProgress = other.m_campaignProgress; |
152 m_campaignProgress = other.m_campaignProgress; |
153 m_rounds = other.m_rounds; |
153 m_rounds = other.m_rounds; |
154 m_wins = other.m_wins; |
154 m_wins = other.m_wins; |
155 } |
155 } |
156 |
156 |
157 return *this; |
157 return *this; |
158 } |
158 } |
159 |
159 |
160 bool HWTeam::loadFromFile() |
160 bool HWTeam::loadFromFile() |
161 { |
161 { |
162 QSettings teamfile(cfgdir->absolutePath() + "/Teams/" + m_name + ".hwt", QSettings::IniFormat, 0); |
162 QSettings teamfile(cfgdir->absolutePath() + "/Teams/" + m_name + ".hwt", QSettings::IniFormat, 0); |