aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/animator_v2.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2007-10-09 08:44:45 +0000
committerJohannes Schickel2007-10-09 08:44:45 +0000
commitdd1b43a5a91da0051a32938807d7a7fa157caa2a (patch)
treea7d943acb1d03065f3e5f900e8982204065cd038 /engines/kyra/animator_v2.cpp
parentd73ffa3b03ba4f67aed82466951709e970141e8a (diff)
downloadscummvm-rg350-dd1b43a5a91da0051a32938807d7a7fa157caa2a.tar.gz
scummvm-rg350-dd1b43a5a91da0051a32938807d7a7fa157caa2a.tar.bz2
scummvm-rg350-dd1b43a5a91da0051a32938807d7a7fa157caa2a.zip
HoF:
- More input handling (should be rather complete now, not finished but nearlly) - Implemented the following opcodes: -> o2_trySceneChange 0x0d -> o2_setHandItem 0x2a -> o2_handItemSet 0x2c -> o2_setCharPalEntry 0x3c -> o2_drawSceneShape 0x3e -> o2_update 0x4b -> o2_fadeScenePal 0x4d -> o2_enterNewSceneEx 0x50 -> o2_setZanthiaPos 0x56 -> o2_runTemporaryScript 0x6e -> o2t_defineNewShape 0x00 -> o2t_setCurrentFrame 0x01 -> o2t_setShapeFlag 0x04 svn-id: r29178
Diffstat (limited to 'engines/kyra/animator_v2.cpp')
-rw-r--r--engines/kyra/animator_v2.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/engines/kyra/animator_v2.cpp b/engines/kyra/animator_v2.cpp
index 2333a1a81b..eb1e93a6a2 100644
--- a/engines/kyra/animator_v2.cpp
+++ b/engines/kyra/animator_v2.cpp
@@ -191,6 +191,11 @@ void KyraEngine_v2::refreshAnimObjectsIfNeed() {
}
}
+void KyraEngine_v2::flagAnimObjsForRefresh() {
+ for (AnimObj *curEntry = _animList; curEntry; curEntry = curEntry->nextObject)
+ curEntry->needRefresh = 1;
+}
+
void KyraEngine_v2::updateCharFacing() {
if (_mainCharacter.x1 > _mouseX)
_mainCharacter.facing = 5;
@@ -369,4 +374,21 @@ void KyraEngine_v2::deleteItemAnimEntry(int item) {
_animList = deleteAnimListEntry(_animList, animObj);
}
+void KyraEngine_v2::setCharacterAnimDim(int w, int h) {
+ restorePage3();
+
+ _animObj0Width = _animObjects[0].width;
+ _animObj0Height = _animObjects[0].height;
+
+ _animObjects[0].width = w;
+ _animObjects[0].height = h;
+}
+
+void KyraEngine_v2::resetCharacterAnimDim() {
+ restorePage3();
+
+ _animObjects[0].width = _animObj0Width;
+ _animObjects[0].height = _animObj0Height;
+}
+
} // end of namespace Kyra