summaryrefslogtreecommitdiffstats
path: root/examples/statemachine/animation/sub-attaq/bomb.h
blob: a5c5f7770252c6062e62f9a00b698a830d3594b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

#ifndef BOMB_H
#define BOMB_H

#include "pixmapitem.h"

class Bomb : public PixmapItem
{
Q_OBJECT
public:
    enum Direction {
        Left =  0,
        Right
    };
    Bomb();
    void launch(Direction direction);
    void destroy();

signals:
    void bombExploded();
    void bombExecutionFinished();

private slots:
    void onAnimationLaunchValueChanged(const QVariant &);
};

#endif // BOMB_H