diff options
author | Einar Johan Trøan Sømåen | 2012-03-06 05:43:20 +0100 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-06-02 12:12:32 +0200 |
commit | d5b4474c36575fc5110da4ab850688d09419e27a (patch) | |
tree | 88df7701ac218119b311d3afb8178b6614fee833 /engines/wintermute/scriptables/SXString.h | |
parent | ff64c8d107b23178b790232a489eecf8924abccd (diff) | |
download | scummvm-rg350-d5b4474c36575fc5110da4ab850688d09419e27a.tar.gz scummvm-rg350-d5b4474c36575fc5110da4ab850688d09419e27a.tar.bz2 scummvm-rg350-d5b4474c36575fc5110da4ab850688d09419e27a.zip |
WINTERMUTE: Make BGame almost compilable
Diffstat (limited to 'engines/wintermute/scriptables/SXString.h')
-rw-r--r-- | engines/wintermute/scriptables/SXString.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/engines/wintermute/scriptables/SXString.h b/engines/wintermute/scriptables/SXString.h new file mode 100644 index 0000000000..1cd3a7f52c --- /dev/null +++ b/engines/wintermute/scriptables/SXString.h @@ -0,0 +1,58 @@ +/* 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.
+ *
+ */
+
+/*
+ * This file is based on WME Lite.
+ * http://dead-code.org/redir.php?target=wmelite
+ * Copyright (c) 2011 Jan Nedoma
+ */
+
+#ifndef __WmeSXString_H__
+#define __WmeSXString_H__
+
+
+#include "engines/wintermute/BScriptable.h"
+
+namespace WinterMute {
+
+class CSXString : public CBScriptable {
+public:
+ virtual int ScCompare(CBScriptable *Val);
+ DECLARE_PERSISTENT(CSXString, CBScriptable)
+ CScValue *ScGetProperty(char *Name);
+ HRESULT ScSetProperty(char *Name, CScValue *Value);
+ HRESULT ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, char *Name);
+ void ScSetString(const char *Val);
+ char *ScToString();
+ void SetStringVal(const char *Val);
+
+ CSXString(CBGame *inGame, CScStack *Stack);
+ virtual ~CSXString();
+
+private:
+ char *_string;
+ int _capacity;
+};
+
+} // end of namespace WinterMute
+
+#endif
|