diff options
author | Oystein Eftevaag | 2006-02-09 07:37:19 +0000 |
---|---|---|
committer | Oystein Eftevaag | 2006-02-09 07:37:19 +0000 |
commit | 56d918edbe5feecb4c0239a8927adb60602ae154 (patch) | |
tree | d1e167b1b890d3718d60c734149518f9d75a3907 /kyra/animator.cpp | |
parent | 91222cc6acacc2a399ac982eae61d5c0f204bbb9 (diff) | |
download | scummvm-rg350-56d918edbe5feecb4c0239a8927adb60602ae154.tar.gz scummvm-rg350-56d918edbe5feecb4c0239a8927adb60602ae154.tar.bz2 scummvm-rg350-56d918edbe5feecb4c0239a8927adb60602ae154.zip |
Moved tons of code out of kyra.cpp, and removed three redundant functions (two stubs
to sound functions, and one duplicate function (one with 'posion' in the name, one with 'poison').
The bulk of the moved code is moved to the newly created files items.cpp, scene.cpp and
sequences.cpp
svn-id: r20437
Diffstat (limited to 'kyra/animator.cpp')
-rw-r--r-- | kyra/animator.cpp | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/kyra/animator.cpp b/kyra/animator.cpp index df616f5965..057bb0cbeb 100644 --- a/kyra/animator.cpp +++ b/kyra/animator.cpp @@ -65,6 +65,48 @@ void ScreenAnimator::close() { } } +void ScreenAnimator::initAnimStateList() { + AnimObject *animStates = _screenObjects; + animStates[0].index = 0; + animStates[0].active = 1; + animStates[0].flags = 0x800; + animStates[0].background = _vm->_shapes[2]; + animStates[0].rectSize = _screen->getRectSize(4, 48); + animStates[0].width = 4; + animStates[0].height = 48; + animStates[0].width2 = 4; + animStates[0].height2 = 3; + + for (int i = 1; i <= 4; ++i) { + animStates[i].index = i; + animStates[i].active = 0; + animStates[i].flags = 0x800; + animStates[i].background = _vm->_shapes[3]; + animStates[i].rectSize = _screen->getRectSize(4, 64); + animStates[i].width = 4; + animStates[i].height = 48; + animStates[i].width2 = 4; + animStates[i].height2 = 3; + } + + for (int i = 5; i < 16; ++i) { + animStates[i].index = i; + animStates[i].active = 0; + animStates[i].flags = 0; + } + + for (int i = 16; i < 28; ++i) { + animStates[i].index = i; + animStates[i].flags = 0; + animStates[i].background = _vm->_shapes[349+i]; + animStates[i].rectSize = _screen->getRectSize(3, 24); + animStates[i].width = 3; + animStates[i].height = 16; + animStates[i].width2 = 0; + animStates[i].height2 = 0; + } +} + void ScreenAnimator::preserveAllBackgrounds() { debug(9, "ScreenAnimator::preserveAllBackgrounds()"); uint8 curPage = _screen->_curPage; |