aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/AdTalkHolder.h
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-03-06 04:26:55 +0100
committerEinar Johan Trøan Sømåen2012-06-02 12:12:27 +0200
commit5a2cf6f36ff5f8a75b1e34b00bd5444619eb4615 (patch)
tree89ae3a3f2158b780001041d54b55b8758f04b14d /engines/wintermute/AdTalkHolder.h
parentc609c778cceeaa6a70cf147451d7d894d76e40e7 (diff)
downloadscummvm-rg350-5a2cf6f36ff5f8a75b1e34b00bd5444619eb4615.tar.gz
scummvm-rg350-5a2cf6f36ff5f8a75b1e34b00bd5444619eb4615.tar.bz2
scummvm-rg350-5a2cf6f36ff5f8a75b1e34b00bd5444619eb4615.zip
WINTERMUTE: Add the UI-classes.
Diffstat (limited to 'engines/wintermute/AdTalkHolder.h')
-rw-r--r--engines/wintermute/AdTalkHolder.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/engines/wintermute/AdTalkHolder.h b/engines/wintermute/AdTalkHolder.h
new file mode 100644
index 0000000000..7eb07a8f66
--- /dev/null
+++ b/engines/wintermute/AdTalkHolder.h
@@ -0,0 +1,57 @@
+/* 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 WINTERMUTE_ADTALKHOLDER_H
+#define WINTERMUTE_ADTALKHOLDER_H
+
+#include "AdObject.h"
+
+namespace WinterMute {
+
+class CAdTalkHolder : public CAdObject {
+public:
+ DECLARE_PERSISTENT(CAdTalkHolder, CAdObject)
+ virtual CBSprite *GetTalkStance(char *Stance);
+ virtual HRESULT SaveAsText(CBDynBuffer *Buffer, int Indent);
+ CBSprite *m_Sprite;
+ CBArray<CBSprite *, CBSprite *> m_TalkSprites;
+ CBArray<CBSprite *, CBSprite *> m_TalkSpritesEx;
+ CAdTalkHolder(CBGame *inGame);
+ virtual ~CAdTalkHolder();
+
+ // scripting interface
+ virtual CScValue *ScGetProperty(char *Name);
+ virtual HRESULT ScSetProperty(char *Name, CScValue *Value);
+ virtual HRESULT ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, char *Name);
+ virtual char *ScToString();
+
+};
+
+} // end of namespace WinterMute
+
+#endif