summaryrefslogtreecommitdiffstats
path: root/examples/statemachine/animation/sub-attaq/submarine.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/statemachine/animation/sub-attaq/submarine.h')
-rw-r--r--examples/statemachine/animation/sub-attaq/submarine.h52
1 files changed, 0 insertions, 52 deletions
diff --git a/examples/statemachine/animation/sub-attaq/submarine.h b/examples/statemachine/animation/sub-attaq/submarine.h
deleted file mode 100644
index ebc3b25..0000000
--- a/examples/statemachine/animation/sub-attaq/submarine.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (C) 2016 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
-
-#ifndef SUBMARINE_H
-#define SUBMARINE_H
-
-#include "pixmapitem.h"
-
-#include <QGraphicsRotation>
-
-class SubMarine : public PixmapItem
-{
-Q_OBJECT
-public:
- enum Movement {
- None = 0,
- Left,
- Right
- };
- enum { Type = UserType + 1 };
- SubMarine(int type, const QString &name, int points);
-
- int points() const;
-
- void setCurrentDirection(Movement direction);
- enum Movement currentDirection() const;
-
- void setCurrentSpeed(int speed);
- int currentSpeed() const;
-
- void launchTorpedo(int speed);
- void destroy();
-
- int type() const override;
-
- QGraphicsRotation *rotation() const { return graphicsRotation; }
-
-signals:
- void subMarineDestroyed();
- void subMarineExecutionFinished();
- void subMarineStateChanged();
-
-private:
- int subType;
- QString subName;
- int subPoints;
- int speed;
- Movement direction;
- QGraphicsRotation *graphicsRotation;
-};
-
-#endif // SUBMARINE_H