[Scummvm-cvs-logs] SF.net SVN: scummvm: [28312] scummvm/trunk/engines/parallaction
peres001 at users.sourceforge.net
peres001 at users.sourceforge.net
Sun Jul 29 20:49:25 CEST 2007
Revision: 28312
http://scummvm.svn.sourceforge.net/scummvm/?rev=28312&view=rev
Author: peres001
Date: 2007-07-29 11:49:24 -0700 (Sun, 29 Jul 2007)
Log Message:
-----------
Added callables stubs for Big Red Adventure.
Modified Paths:
--------------
scummvm/trunk/engines/parallaction/module.mk
scummvm/trunk/engines/parallaction/parallaction.h
scummvm/trunk/engines/parallaction/parallaction_br.cpp
Added Paths:
-----------
scummvm/trunk/engines/parallaction/callables_br.cpp
Added: scummvm/trunk/engines/parallaction/callables_br.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/callables_br.cpp (rev 0)
+++ scummvm/trunk/engines/parallaction/callables_br.cpp 2007-07-29 18:49:24 UTC (rev 28312)
@@ -0,0 +1,60 @@
+/* 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.
+ *
+ * $URL$
+ * $Id$
+ *
+ */
+
+#include "common/stdafx.h"
+
+#include "parallaction/parallaction.h"
+
+namespace Parallaction {
+
+
+void Parallaction_br::_c_blufade(void*) {
+ warning("Parallaction_br::_c_blufade() not yet implemented");
+}
+
+void Parallaction_br::_c_resetpalette(void*) {
+ warning("Parallaction_br::_c_resetpalette() not yet implemented");
+}
+
+void Parallaction_br::_c_ferrcycle(void*) {
+ warning("Parallaction_br::_c_ferrcycle() not yet implemented");
+}
+
+void Parallaction_br::_c_lipsinc(void*) {
+ warning("Parallaction_br::_c_lipsinc() not yet implemented");
+}
+
+void Parallaction_br::_c_albcycle(void*) {
+ warning("Parallaction_br::_c_albcycle() not yet implemented");
+}
+
+void Parallaction_br::_c_password(void*) {
+ warning("Parallaction_br::_c_password() not yet implemented");
+}
+
+
+
+
+} // namespace Parallaction
Property changes on: scummvm/trunk/engines/parallaction/callables_br.cpp
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Date Rev Author URL Id
Name: svn:eol-style
+ native
Modified: scummvm/trunk/engines/parallaction/module.mk
===================================================================
--- scummvm/trunk/engines/parallaction/module.mk 2007-07-29 18:46:29 UTC (rev 28311)
+++ scummvm/trunk/engines/parallaction/module.mk 2007-07-29 18:49:24 UTC (rev 28312)
@@ -2,6 +2,7 @@
MODULE_OBJS := \
animation.o \
+ callables_br.o \
callables_ns.o \
commands.o \
debug.o \
Modified: scummvm/trunk/engines/parallaction/parallaction.h
===================================================================
--- scummvm/trunk/engines/parallaction/parallaction.h 2007-07-29 18:46:29 UTC (rev 28311)
+++ scummvm/trunk/engines/parallaction/parallaction.h 2007-07-29 18:49:24 UTC (rev 28312)
@@ -544,13 +544,25 @@
int init();
public:
+ virtual void callFunction(uint index, void* parm);
+
+public:
Table *_audioCommandsNames;
const char **_audioCommandsNamesRes;
private:
void initResources();
+ typedef void (Parallaction_br::*Callable)(void*);
+ void _c_blufade(void*);
+ void _c_resetpalette(void*);
+ void _c_ferrcycle(void*);
+ void _c_lipsinc(void*);
+ void _c_albcycle(void*);
+ void _c_password(void*);
+
+ Callable _callables[6];
};
// FIXME: remove global
Modified: scummvm/trunk/engines/parallaction/parallaction_br.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/parallaction_br.cpp 2007-07-29 18:46:29 UTC (rev 28311)
+++ scummvm/trunk/engines/parallaction/parallaction_br.cpp 2007-07-29 18:49:24 UTC (rev 28312)
@@ -57,4 +57,10 @@
return 0;
}
+void Parallaction_br::callFunction(uint index, void* parm) {
+ assert(index < 6); // magic value 6 is maximum # of callables for Big Red Adventure
+
+ (this->*_callables[index])(parm);
+}
+
} // namespace Parallaction
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list