tools/MissionsEditor/teamedit.h
author sheepluva
Mon, 28 Jun 2010 09:33:10 +0200
changeset 3580 85bd667955f2
parent 2596 41b46f83d088
permissions -rw-r--r--
engine: apply weapon offset to charge animation
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2589
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
     1
#ifndef TEAMEDIT_H
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
     2
#define TEAMEDIT_H
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
     3
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
     4
#include <QtGui/QWidget>
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
     5
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
     6
namespace Ui {
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
     7
    class TeamEdit;
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
     8
}
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
     9
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    10
class TeamEdit : public QWidget {
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    11
    Q_OBJECT
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    12
public:
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    13
    TeamEdit(QWidget *parent = 0);
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    14
    ~TeamEdit();
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    15
2596
41b46f83d088 Compete loading teams/hedgehogs part from mission config
unc0rr
parents: 2594
diff changeset
    16
    void reset();
41b46f83d088 Compete loading teams/hedgehogs part from mission config
unc0rr
parents: 2594
diff changeset
    17
    void setTeam(const QString & teamName = QString(), quint32 color = 0xdd0000);
41b46f83d088 Compete loading teams/hedgehogs part from mission config
unc0rr
parents: 2594
diff changeset
    18
    void addHedgehog(quint32 level = 0, quint32 health = 100, const QString & name = QString());
2594
0047e16dbacb Add loading team parameters
unc0rr
parents: 2589
diff changeset
    19
    void setFort(const QString & name);
0047e16dbacb Add loading team parameters
unc0rr
parents: 2589
diff changeset
    20
    void setGrave(const QString & name);
2596
41b46f83d088 Compete loading teams/hedgehogs part from mission config
unc0rr
parents: 2594
diff changeset
    21
    void setLastHHHat(const QString & name);
41b46f83d088 Compete loading teams/hedgehogs part from mission config
unc0rr
parents: 2594
diff changeset
    22
    void setLastHHCoords(int x, int y);
2594
0047e16dbacb Add loading team parameters
unc0rr
parents: 2589
diff changeset
    23
    void setVoicepack(const QString & name);
2589
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    24
protected:
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    25
    void changeEvent(QEvent *e);
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    26
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    27
private:
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    28
    Ui::TeamEdit *m_ui;
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    29
};
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    30
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    31
#endif // TEAMEDIT_H