qmlfrontend/team.h
author unc0rr
Wed, 27 Dec 2017 00:59:26 +0100
branchqmlfrontend
changeset 12863 fe16fa088b69
child 14291 f1a5b7baa87f
permissions -rw-r--r--
Make playing a game possible
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12863
fe16fa088b69 Make playing a game possible
unc0rr
parents:
diff changeset
     1
#ifndef TEAM_H
fe16fa088b69 Make playing a game possible
unc0rr
parents:
diff changeset
     2
#define TEAM_H
fe16fa088b69 Make playing a game possible
unc0rr
parents:
diff changeset
     3
fe16fa088b69 Make playing a game possible
unc0rr
parents:
diff changeset
     4
#include <QObject>
fe16fa088b69 Make playing a game possible
unc0rr
parents:
diff changeset
     5
#include <QVector>
fe16fa088b69 Make playing a game possible
unc0rr
parents:
diff changeset
     6
fe16fa088b69 Make playing a game possible
unc0rr
parents:
diff changeset
     7
struct Hedgehog {
fe16fa088b69 Make playing a game possible
unc0rr
parents:
diff changeset
     8
    Hedgehog();
fe16fa088b69 Make playing a game possible
unc0rr
parents:
diff changeset
     9
fe16fa088b69 Make playing a game possible
unc0rr
parents:
diff changeset
    10
    QByteArray name;
fe16fa088b69 Make playing a game possible
unc0rr
parents:
diff changeset
    11
    QByteArray hat;
fe16fa088b69 Make playing a game possible
unc0rr
parents:
diff changeset
    12
    quint32 hp;
fe16fa088b69 Make playing a game possible
unc0rr
parents:
diff changeset
    13
    int level;
fe16fa088b69 Make playing a game possible
unc0rr
parents:
diff changeset
    14
};
fe16fa088b69 Make playing a game possible
unc0rr
parents:
diff changeset
    15
fe16fa088b69 Make playing a game possible
unc0rr
parents:
diff changeset
    16
class Team {
fe16fa088b69 Make playing a game possible
unc0rr
parents:
diff changeset
    17
public:
fe16fa088b69 Make playing a game possible
unc0rr
parents:
diff changeset
    18
    explicit Team();
fe16fa088b69 Make playing a game possible
unc0rr
parents:
diff changeset
    19
fe16fa088b69 Make playing a game possible
unc0rr
parents:
diff changeset
    20
    void resize(int number);
fe16fa088b69 Make playing a game possible
unc0rr
parents:
diff changeset
    21
    QVector<Hedgehog> hedgehogs() const;
fe16fa088b69 Make playing a game possible
unc0rr
parents:
diff changeset
    22
fe16fa088b69 Make playing a game possible
unc0rr
parents:
diff changeset
    23
    QByteArray name;
fe16fa088b69 Make playing a game possible
unc0rr
parents:
diff changeset
    24
    QByteArray color;
fe16fa088b69 Make playing a game possible
unc0rr
parents:
diff changeset
    25
fe16fa088b69 Make playing a game possible
unc0rr
parents:
diff changeset
    26
private:
fe16fa088b69 Make playing a game possible
unc0rr
parents:
diff changeset
    27
    QVector<Hedgehog> m_hedgehogs;
fe16fa088b69 Make playing a game possible
unc0rr
parents:
diff changeset
    28
    int m_hedgehogsNumber;
fe16fa088b69 Make playing a game possible
unc0rr
parents:
diff changeset
    29
};
fe16fa088b69 Make playing a game possible
unc0rr
parents:
diff changeset
    30
fe16fa088b69 Make playing a game possible
unc0rr
parents:
diff changeset
    31
#endif // TEAM_H