summaryrefslogtreecommitdiffstats
path: root/examples/statemachine/tankgame/plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/statemachine/tankgame/plugin.h')
-rw-r--r--examples/statemachine/tankgame/plugin.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/statemachine/tankgame/plugin.h b/examples/statemachine/tankgame/plugin.h
new file mode 100644
index 0000000..2b48d43
--- /dev/null
+++ b/examples/statemachine/tankgame/plugin.h
@@ -0,0 +1,17 @@
+#ifndef PLUGIN_H
+#define PLUGIN_H
+
+#include <QtPlugin>
+
+class QState;
+class Plugin
+{
+public:
+ virtual ~Plugin() {}
+
+ virtual QState *create(QState *parentState, QObject *tank) = 0;
+};
+
+Q_DECLARE_INTERFACE(Plugin, "TankPlugin")
+
+#endif