qmlfrontend/team.h
branchqmlfrontend
changeset 12863 fe16fa088b69
child 14291 f1a5b7baa87f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/qmlfrontend/team.h	Wed Dec 27 00:59:26 2017 +0100
@@ -0,0 +1,31 @@
+#ifndef TEAM_H
+#define TEAM_H
+
+#include <QObject>
+#include <QVector>
+
+struct Hedgehog {
+    Hedgehog();
+
+    QByteArray name;
+    QByteArray hat;
+    quint32 hp;
+    int level;
+};
+
+class Team {
+public:
+    explicit Team();
+
+    void resize(int number);
+    QVector<Hedgehog> hedgehogs() const;
+
+    QByteArray name;
+    QByteArray color;
+
+private:
+    QVector<Hedgehog> m_hedgehogs;
+    int m_hedgehogsNumber;
+};
+
+#endif // TEAM_H