aboutsummaryrefslogtreecommitdiff
path: root/engines/illusions/scriptstack.h
diff options
context:
space:
mode:
authorjohndoe1232014-08-01 23:43:37 +0200
committerEugene Sandulenko2018-07-20 06:43:33 +0000
commit50d340de00ac23c0a75ad613ad3aa64f0f28fb57 (patch)
treef76ca782f48d33da375f76f71e80e157435b2982 /engines/illusions/scriptstack.h
parent297996a0900acca177ecfd3ffa51907ad8d284fa (diff)
downloadscummvm-rg350-50d340de00ac23c0a75ad613ad3aa64f0f28fb57.tar.gz
scummvm-rg350-50d340de00ac23c0a75ad613ad3aa64f0f28fb57.tar.bz2
scummvm-rg350-50d340de00ac23c0a75ad613ad3aa64f0f28fb57.zip
ILLUSIONS: Rename file scriptman,* to scriptstack.* and remove unneccessary includes of it
Diffstat (limited to 'engines/illusions/scriptstack.h')
-rw-r--r--engines/illusions/scriptstack.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/engines/illusions/scriptstack.h b/engines/illusions/scriptstack.h
new file mode 100644
index 0000000000..b738102888
--- /dev/null
+++ b/engines/illusions/scriptstack.h
@@ -0,0 +1,43 @@
+/* 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_SCRIPTSTACK_H
+#define ILLUSIONS_SCRIPTSTACK_H
+
+namespace Illusions {
+
+class ScriptStack {
+public:
+ ScriptStack();
+ void clear();
+ void push(int16 value);
+ int16 pop();
+ int16 peek();
+ int16 *topPtr();
+protected:
+ int _stackPos;
+ int16 _stack[256];
+};
+
+} // End of namespace Illusions
+
+#endif // ILLUSIONS_SCRIPTSTACK_H