tools/MissionsEditor/hedgehogedit.h
author unc0rr
Sun, 29 Nov 2009 16:56:04 +0000
changeset 2647 0e1208e92dfe
parent 2596 41b46f83d088
permissions -rw-r--r--
Smaxx patch with tuning by me: - hogs might worry/panic if they're next to explosives (grenade, dynamite, etc.) - play sndVaporice for each fire extinguished only once (not 3 times) - allow "on attack" voices/sounds for weapons (similar to water melon bomb) - allow one voice/sound to be played during emotes - print protocol version in version info (console) - rope sounds (disabled atm) - landscape background - optimized/rewrote explosion drawing - fixed "StopSound" called with an inactive sound to stop some random sound - disabled npott
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2596
41b46f83d088 Compete loading teams/hedgehogs part from mission config
unc0rr
parents:
diff changeset
     1
#ifndef HEDGEHOGEDIT_H
41b46f83d088 Compete loading teams/hedgehogs part from mission config
unc0rr
parents:
diff changeset
     2
#define HEDGEHOGEDIT_H
41b46f83d088 Compete loading teams/hedgehogs part from mission config
unc0rr
parents:
diff changeset
     3
41b46f83d088 Compete loading teams/hedgehogs part from mission config
unc0rr
parents:
diff changeset
     4
#include <QtGui/QFrame>
41b46f83d088 Compete loading teams/hedgehogs part from mission config
unc0rr
parents:
diff changeset
     5
41b46f83d088 Compete loading teams/hedgehogs part from mission config
unc0rr
parents:
diff changeset
     6
namespace Ui {
41b46f83d088 Compete loading teams/hedgehogs part from mission config
unc0rr
parents:
diff changeset
     7
    class HedgehogEdit;
41b46f83d088 Compete loading teams/hedgehogs part from mission config
unc0rr
parents:
diff changeset
     8
}
41b46f83d088 Compete loading teams/hedgehogs part from mission config
unc0rr
parents:
diff changeset
     9
41b46f83d088 Compete loading teams/hedgehogs part from mission config
unc0rr
parents:
diff changeset
    10
class HedgehogEdit : public QFrame {
41b46f83d088 Compete loading teams/hedgehogs part from mission config
unc0rr
parents:
diff changeset
    11
    Q_OBJECT
41b46f83d088 Compete loading teams/hedgehogs part from mission config
unc0rr
parents:
diff changeset
    12
public:
41b46f83d088 Compete loading teams/hedgehogs part from mission config
unc0rr
parents:
diff changeset
    13
    HedgehogEdit(QWidget *parent = 0);
41b46f83d088 Compete loading teams/hedgehogs part from mission config
unc0rr
parents:
diff changeset
    14
    ~HedgehogEdit();
41b46f83d088 Compete loading teams/hedgehogs part from mission config
unc0rr
parents:
diff changeset
    15
41b46f83d088 Compete loading teams/hedgehogs part from mission config
unc0rr
parents:
diff changeset
    16
    void setHedgehog(quint32 level = 0, quint32 health = 100, const QString & name = QString());
41b46f83d088 Compete loading teams/hedgehogs part from mission config
unc0rr
parents:
diff changeset
    17
    void setHat(const QString & name);
41b46f83d088 Compete loading teams/hedgehogs part from mission config
unc0rr
parents:
diff changeset
    18
    void setCoordinates(int x, int y);
41b46f83d088 Compete loading teams/hedgehogs part from mission config
unc0rr
parents:
diff changeset
    19
41b46f83d088 Compete loading teams/hedgehogs part from mission config
unc0rr
parents:
diff changeset
    20
protected:
41b46f83d088 Compete loading teams/hedgehogs part from mission config
unc0rr
parents:
diff changeset
    21
    void changeEvent(QEvent *e);
41b46f83d088 Compete loading teams/hedgehogs part from mission config
unc0rr
parents:
diff changeset
    22
41b46f83d088 Compete loading teams/hedgehogs part from mission config
unc0rr
parents:
diff changeset
    23
private:
41b46f83d088 Compete loading teams/hedgehogs part from mission config
unc0rr
parents:
diff changeset
    24
    Ui::HedgehogEdit *m_ui;
41b46f83d088 Compete loading teams/hedgehogs part from mission config
unc0rr
parents:
diff changeset
    25
};
41b46f83d088 Compete loading teams/hedgehogs part from mission config
unc0rr
parents:
diff changeset
    26
41b46f83d088 Compete loading teams/hedgehogs part from mission config
unc0rr
parents:
diff changeset
    27
#endif // HEDGEHOGEDIT_H