author | Grigory Ustinov <grenka@altlinux.org> |
Mon, 19 Nov 2018 19:02:48 +0300 | |
changeset 14262 | a6332977f396 |
parent 14164 | 745c73e0e644 |
child 14312 | f1a5b7baa87f |
permissions | -rw-r--r-- |
14164 | 1 |
#ifndef TEAM_H |
2 |
#define TEAM_H |
|
3 |
||
4 |
#include <QObject> |
|
5 |
#include <QVector> |
|
6 |
||
7 |
struct Hedgehog { |
|
8 |
Hedgehog(); |
|
9 |
||
10 |
QByteArray name; |
|
11 |
QByteArray hat; |
|
12 |
quint32 hp; |
|
13 |
int level; |
|
14 |
}; |
|
15 |
||
16 |
class Team { |
|
17 |
public: |
|
18 |
explicit Team(); |
|
19 |
||
20 |
void resize(int number); |
|
21 |
QVector<Hedgehog> hedgehogs() const; |
|
22 |
||
23 |
QByteArray name; |
|
24 |
QByteArray color; |
|
25 |
||
26 |
private: |
|
27 |
QVector<Hedgehog> m_hedgehogs; |
|
28 |
int m_hedgehogsNumber; |
|
29 |
}; |
|
30 |
||
31 |
#endif // TEAM_H |