summaryrefslogtreecommitdiff
path: root/Examples/lua/embed3/example.h
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/lua/embed3/example.h')
-rw-r--r--Examples/lua/embed3/example.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/Examples/lua/embed3/example.h b/Examples/lua/embed3/example.h
new file mode 100644
index 0000000..41c13e9
--- /dev/null
+++ b/Examples/lua/embed3/example.h
@@ -0,0 +1,24 @@
+/* File : example.h */
+
+/* This is some kind of engine of some kind
+we will give it some dummy methods for Lua to call*/
+
+class Engine
+{
+public:
+ void start();
+ void stop();
+ void accelerate(float f);
+ void decelerate(float f);
+};
+
+
+/* We also want to pass some events to Lua, so lets have a few classes
+to do this.
+*/
+class Event
+{
+public:
+ enum {STARTUP,KEYPRESS,MOUSEPRESS,SHUTDOWN} mType;
+ // etc
+};