14148
|
1 |
#ifndef TEAM_H
|
|
2 |
#define TEAM_H
|
|
3 |
|
|
4 |
#include <QObject>
|
|
5 |
#include <QVector>
|
|
6 |
|
|
7 |
struct Hedgehog {
|
14296
|
8 |
Hedgehog();
|
14148
|
9 |
|
14296
|
10 |
QByteArray name;
|
|
11 |
QByteArray hat;
|
|
12 |
quint32 hp;
|
|
13 |
int level;
|
14148
|
14 |
};
|
|
15 |
|
|
16 |
class Team {
|
14296
|
17 |
public:
|
|
18 |
explicit Team();
|
14148
|
19 |
|
14296
|
20 |
void resize(int number);
|
|
21 |
QVector<Hedgehog> hedgehogs() const;
|
14148
|
22 |
|
14296
|
23 |
QByteArray name;
|
|
24 |
QByteArray color;
|
14148
|
25 |
|
14296
|
26 |
private:
|
|
27 |
QVector<Hedgehog> m_hedgehogs;
|
|
28 |
int m_hedgehogsNumber;
|
14148
|
29 |
};
|
|
30 |
|
14296
|
31 |
#endif // TEAM_H
|