aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/illusions/actor.cpp40
-rw-r--r--engines/illusions/actor.h39
-rw-r--r--engines/illusions/illusions.cpp1
-rw-r--r--engines/illusions/module.mk1
4 files changed, 81 insertions, 0 deletions
diff --git a/engines/illusions/actor.cpp b/engines/illusions/actor.cpp
new file mode 100644
index 0000000000..5185fda7e9
--- /dev/null
+++ b/engines/illusions/actor.cpp
@@ -0,0 +1,40 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+#include "illusions/actor.h"
+
+namespace Illusions {
+
+Actor::Actor()
+ : _pauseCtr(0) {
+
+}
+
+void Actor::pause() {
+ ++_pauseCtr;
+}
+
+void Actor::unpause() {
+ --_pauseCtr;
+}
+
+} // End of namespace Illusions
diff --git a/engines/illusions/actor.h b/engines/illusions/actor.h
new file mode 100644
index 0000000000..2817b1df40
--- /dev/null
+++ b/engines/illusions/actor.h
@@ -0,0 +1,39 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+#ifndef ILLUSIONS_ACTOR_H
+#define ILLUSIONS_ACTOR_H
+
+namespace Illusions {
+
+class Actor {
+public:
+ Actor();
+ void pause();
+ void unpause();
+protected:
+ int _pauseCtr;
+};
+
+} // End of namespace Illusions
+
+#endif // ILLUSIONS_ACTOR_H
diff --git a/engines/illusions/illusions.cpp b/engines/illusions/illusions.cpp
index 67887ad00b..69d57bd7d0 100644
--- a/engines/illusions/illusions.cpp
+++ b/engines/illusions/illusions.cpp
@@ -29,6 +29,7 @@
#include "illusions/updatefunctions.h"
#include "illusions/spritedrawqueue.h"
#include "illusions/spritedecompressqueue.h"
+#include "illusions/actor.h"
#include "audio/audiostream.h"
#include "common/config-manager.h"
diff --git a/engines/illusions/module.mk b/engines/illusions/module.mk
index f470e88606..4a409e165a 100644
--- a/engines/illusions/module.mk
+++ b/engines/illusions/module.mk
@@ -1,6 +1,7 @@
MODULE := engines/illusions
MODULE_OBJS := \
+ actor.o \
backgroundresource.o \
camera.o \
detection.o \