--- a/QTfrontend/team.h Sun Oct 28 15:18:26 2012 +0100
+++ b/QTfrontend/team.h Fri Dec 06 22:20:53 2019 +0100
@@ -1,6 +1,6 @@
/*
* Hedgewars, a free turn based strategy game
- * Copyright (c) 2004-2012 Andrey Korotaev <unC0Rr@gmail.com>
+ * Copyright (c) 2004-2015 Andrey Korotaev <unC0Rr@gmail.com>
* Copyright (c) 2007 Igor Ulyanov <iulyanov@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
@@ -14,7 +14,7 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef TEAM_H
@@ -38,7 +38,8 @@
{
QString Name;
QString Hat;
- int Rounds, Kills, Deaths, Suicides;
+
+ HWHog(){}
};
// class representing a team
@@ -60,9 +61,9 @@
bool deleteFile();
bool saveToFile();
bool fileExists();
+ bool wouldOverwriteOtherFile();
// attribute getters
- unsigned int campaignProgress() const;
int color() const;
QColor qcolor() const;
unsigned int difficulty() const;
@@ -71,10 +72,12 @@
QString grave() const;
const HWHog & hedgehog(unsigned int idx) const;
bool isNetTeam() const;
+ bool isMissionTeam() const;
QString keyBind(unsigned int idx) const;
QString name() const;
unsigned char numHedgehogs() const;
QString owner() const;
+ void setOwner(const QString & owner);
QString voicepack() const;
// attribute setters
@@ -87,10 +90,8 @@
void setName(const QString & name);
void setNumHedgehogs(unsigned char num);
void setVoicepack(const QString & voicepack);
-
- // increments for statistical info
- void incRounds();
- void incWins();
+ void setNetTeam(bool isNetTeam);
+ void setMissionTeam(bool isMissionTeam);
// convert team info into strings for further computation
QStringList teamGameConfig(quint32 InitHealth) const;
@@ -121,12 +122,10 @@
quint8 m_numHedgehogs;
int m_color;
bool m_isNetTeam;
+ bool m_isMissionTeam;
QString m_owner;
// class members that contain statistics, etc.
- unsigned int m_campaignProgress;
- unsigned int m_rounds;
- unsigned int m_wins;
unsigned int AchievementProgress[MAX_ACHIEVEMENTS];
};