Skip to content

Commit

Permalink
TSAGE: R2R - Scene 1550: Implement UnkObj15502::subA5CDF()
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Jan 16, 2012
1 parent 5bb473d commit 1ae18a2
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 1 deletion.
57 changes: 56 additions & 1 deletion engines/tsage/ringworld2/ringworld2_scenes1.cpp
Expand Up @@ -2175,6 +2175,61 @@ bool Scene1550::UnkObj15502::startAction(CursorType action, Event &event) {
}
}

void Scene1550::UnkObj15502::subA5CDF(int strip) {
_fieldA4 = strip;
postInit();
setup(1517, _fieldA4, 1);
switch (_fieldA4 - 1) {
case 0:
if (R2_INVENTORY.getObjectScene(R2_22) == 0)
setFrame(5);
setPosition(Common::Point(287, 85));
break;
case 1:
if (R2_INVENTORY.getObjectScene(R2_25) == 0)
setFrame(5);
setPosition(Common::Point(248, 100));
break;
case 2:
if (R2_INVENTORY.getObjectScene(R2_28) == 0)
setFrame(5);
setPosition(Common::Point(217, 85));
break;
case 3:
if (R2_INVENTORY.getObjectScene(R2_23))
setFrame(5);
setPosition(Common::Point(161, 121));
break;
case 4:
if (R2_INVENTORY.getObjectScene(R2_27))
setFrame(5);
setPosition(Common::Point(117, 121));
break;
case 5:
if (R2_INVENTORY.getObjectScene(R2_17))
setFrame(5);
setPosition(Common::Point(111, 85));
break;
case 6:
if (R2_INVENTORY.getObjectScene(R2_45))
setFrame(5);
setPosition(Common::Point(95, 84));
break;
case 7: {
setup(1516, 1, 1);
setPosition(Common::Point(201, 45));
Scene1550 *scene = (Scene1550 *)R2_GLOBALS._sceneManager._scene;
if ((scene->_sceneMode == 1577) || (scene->_sceneMode == 1578))
hide();
fixPriority(92);
setDetails(1550, 70, -1, -1, 2, (SceneItem *) NULL);
}
break;
default:
break;
}
}

Scene1550::UnkObj15503::UnkObj15503() {
_fieldA4 = 0;
}
Expand Down Expand Up @@ -2503,7 +2558,7 @@ void Scene1550::postInit(SceneObjectList *OwnerList) {
_field412 = 1;

_actor1.postInit();
warning("_arrUnkObj15502[7].subA5CDF()");
_arrUnkObj15502[7].subA5CDF(8);
_arrUnkObj15502[7].hide();
if (R2_GLOBALS._player._characterIndex == 1)
_sceneMode = 1577;
Expand Down
1 change: 1 addition & 0 deletions engines/tsage/ringworld2/ringworld2_scenes1.h
Expand Up @@ -251,6 +251,7 @@ class Scene1550 : public SceneExt {
void synchronize(Serializer &s);

virtual bool startAction(CursorType action, Event &event);
void subA5CDF(int strip);
};

class UnkObj15503 : public SceneActor {
Expand Down

0 comments on commit 1ae18a2

Please sign in to comment.