From c0a3816e1790182b7b4b3854846f01247b00ebbe Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Fri, 28 Jan 2005 16:33:14 +0000 Subject: Began what I hope is the final major restructuring of the BS2 engine. In this first step, I have moved all opcode functions into functions.cpp, instead of having them scattered all over the place. To get things to compile again, I had to rewrite the overly complicated sound effects handling. It's much simpler now. The next step will be to move any non-trivial code out of the opcode functions and into the appropriate object. This, I hope, will make it easier to create well-separated objects, instead of the current mess. I also want to tear down the artificial boundary between the main directory and the "driver" directory. We already have a cross-platform layer; there's no need to have yet another one. (Actually, the rewriting of the sound effects code took one first step in this direction.) At the final stage, I'd like to get rid of the "drivers" directory completely, but I'll probably need some help with that if I want to preserve the CVS history of the code. Things will probably be a bit bumpy along the way, but I seem to have reached a point of relative stability again, which is why I'm commiting this now. svn-id: r16668 --- sword2/scroll.cpp | 37 ------------------------------------- 1 file changed, 37 deletions(-) (limited to 'sword2/scroll.cpp') diff --git a/sword2/scroll.cpp b/sword2/scroll.cpp index 890253ffe8..82fa0fa504 100644 --- a/sword2/scroll.cpp +++ b/sword2/scroll.cpp @@ -135,41 +135,4 @@ void Sword2Engine::setScrolling(void) { } } -/** - * Set the special scroll offset variables - * - * Call when starting screens and to change the camera within screens - * - * call AFTER fnInitBackground() to override the defaults - */ - -int32 Logic::fnSetScrollCoordinate(int32 *params) { - // params: 0 feet_x value - // 1 feet_y value - - // Called feet_x and feet_y to retain intellectual compatibility with - // Sword1! - // - // feet_x & feet_y refer to the physical screen coords where the - // system will try to maintain George's feet - - _vm->_thisScreen.feet_x = params[0]; - _vm->_thisScreen.feet_y = params[1]; - return IR_CONT; -} - -int32 Logic::fnSetScrollSpeedNormal(int32 *params) { - // params: none - - _vm->_scrollFraction = 16; - return IR_CONT; -} - -int32 Logic::fnSetScrollSpeedSlow(int32 *params) { - // params: none - - _vm->_scrollFraction = 32; - return IR_CONT; -} - } // End of namespace Sword2 -- cgit v1.2.3