aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/animator_hof.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2008-05-02 17:14:59 +0000
committerJohannes Schickel2008-05-02 17:14:59 +0000
commita829244b8ce5f5444e5c109aba6b8744d6327d7b (patch)
treef2a59570bece7b9d401f1a3b56fd889ca4786f4b /engines/kyra/animator_hof.cpp
parentc84b3719575cc26ad8f68c41191bd6e9f79f5249 (diff)
downloadscummvm-rg350-a829244b8ce5f5444e5c109aba6b8744d6327d7b.tar.gz
scummvm-rg350-a829244b8ce5f5444e5c109aba6b8744d6327d7b.tar.bz2
scummvm-rg350-a829244b8ce5f5444e5c109aba6b8744d6327d7b.zip
- Renamed ScreenAnimator -> Animator_v1
- Moved addItemToAnimList and deleteItemAnimEntry to KyraEngine_v2. svn-id: r31831
Diffstat (limited to 'engines/kyra/animator_hof.cpp')
-rw-r--r--engines/kyra/animator_hof.cpp50
1 files changed, 0 insertions, 50 deletions
diff --git a/engines/kyra/animator_hof.cpp b/engines/kyra/animator_hof.cpp
index 0d234e8987..b4ab4383d0 100644
--- a/engines/kyra/animator_hof.cpp
+++ b/engines/kyra/animator_hof.cpp
@@ -318,56 +318,6 @@ void KyraEngine_HoF::drawCharacterAnimObject(AnimObj *obj, int x, int y, int lay
_screen->drawShape(2, getShapePtr(obj->shapeIndex1), x, y, 2, obj->flags | 4, layer, _charScale, _charScale);
}
-void KyraEngine_HoF::addItemToAnimList(int item) {
- debugC(9, kDebugLevelAnimator, "KyraEngine_HoF::addItemToAnimList(%d)", item);
- restorePage3();
-
- AnimObj *animObj = &_animObjects[11+item];
-
- animObj->enabled = 1;
- animObj->needRefresh = 1;
- animObj->specialRefresh = 1;
-
- int itemId = _itemList[item].id;
-
- animObj->xPos2 = animObj->xPos1 = _itemList[item].x;
- animObj->yPos2 = animObj->yPos1 = _itemList[item].y;
-
- animObj->shapePtr = getShapePtr(64+itemId);
- animObj->shapeIndex2 = animObj->shapeIndex1 = 64+itemId;
-
- int scaleY, scaleX;
- scaleY = scaleX = getScale(animObj->xPos1, animObj->yPos1);
-
- uint8 *shapePtr = getShapePtr(64+itemId);
- animObj->xPos3 = (animObj->xPos2 -= (_screen->getShapeScaledWidth(shapePtr, scaleX) >> 1));
- animObj->yPos3 = (animObj->yPos2 -= _screen->getShapeScaledHeight(shapePtr, scaleY));
-
- animObj->width2 = animObj->height2 = 0;
-
- _animList = addToAnimListSorted(_animList, animObj);
- animObj->needRefresh = 1;
- animObj->specialRefresh = 1;
-}
-
-void KyraEngine_HoF::deleteItemAnimEntry(int item) {
- debugC(9, kDebugLevelAnimator, "KyraEngine_HoF::deleteItemAnimEntry(%d)", item);
- AnimObj *animObj = &_animObjects[11+item];
-
- restorePage3();
-
- animObj->shapePtr = 0;
- animObj->shapeIndex1 = 0xFFFF;
- animObj->shapeIndex2 = 0xFFFF;
- animObj->needRefresh = 1;
- animObj->specialRefresh = 1;
-
- refreshAnimObjectsIfNeed();
-
- animObj->enabled = 0;
- _animList = deleteAnimListEntry(_animList, animObj);
-}
-
void KyraEngine_HoF::setCharacterAnimDim(int w, int h) {
debugC(9, kDebugLevelAnimator, "KyraEngine_HoF::setCharacterAnimDim(%d, %d)", w, h);
restorePage3();