equal
deleted
inserted
replaced
42 }; |
42 }; |
43 |
43 |
44 // class representing a team |
44 // class representing a team |
45 class HWTeam : public QObject |
45 class HWTeam : public QObject |
46 { |
46 { |
47 Q_OBJECT |
47 Q_OBJECT |
48 |
48 |
49 public: |
49 public: |
50 |
50 |
51 // constructors |
51 // constructors |
52 HWTeam(const QString & teamname); |
52 HWTeam(const QString & teamname); |
60 bool deleteFile(); |
60 bool deleteFile(); |
61 bool saveToFile(); |
61 bool saveToFile(); |
62 bool fileExists(); |
62 bool fileExists(); |
63 |
63 |
64 // attribute getters |
64 // attribute getters |
65 unsigned int campaignProgress() const; |
65 unsigned int campaignProgress() const; |
66 QColor color() const; |
66 QColor color() const; |
67 unsigned int difficulty() const; |
67 unsigned int difficulty() const; |
68 QString flag() const; |
68 QString flag() const; |
69 QString fort() const; |
69 QString fort() const; |
70 QString grave() const; |
70 QString grave() const; |
71 const HWHog & hedgehog(unsigned int idx) const; |
71 const HWHog & hedgehog(unsigned int idx) const; |
72 bool isNetTeam() const; |
72 bool isNetTeam() const; |
73 QString keyBind(unsigned int idx) const; |
73 QString keyBind(unsigned int idx) const; |
74 QString name() const; |
74 QString name() const; |
75 unsigned char numHedgehogs() const; |
75 unsigned char numHedgehogs() const; |
76 QString owner() const; |
76 QString owner() const; |
77 QString voicepack() const; |
77 QString voicepack() const; |
78 |
78 |
79 // attribute setters |
79 // attribute setters |
80 void bindKey(unsigned int idx, const QString & key); |
80 void bindKey(unsigned int idx, const QString & key); |
81 void setColor(const QColor & color); |
81 void setColor(const QColor & color); |
82 void setDifficulty(unsigned int level); |
82 void setDifficulty(unsigned int level); |