Skip to content

Commit

Permalink
TSAGE: Implemented Blue Force scene 370 - Future Wave bedroom
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Sep 18, 2011
1 parent c5615d7 commit 95467a3
Show file tree
Hide file tree
Showing 6 changed files with 620 additions and 2 deletions.
6 changes: 4 additions & 2 deletions engines/tsage/blue_force/blueforce_logic.cpp
Expand Up @@ -107,8 +107,10 @@ Scene *BlueForceGame::createScene(int sceneNumber) {
return new Scene350();
case 355:
case 360:
case 370:
error("Scene group 3 not implemented");
case 370:
// Future Wave Bedroom
return new Scene370();
case 380:
// Outside City Hall & Jail
return new Scene380();
Expand Down Expand Up @@ -414,7 +416,7 @@ bool NamedObject::startAction(CursorType action, Event &event) {
}

if (!handled)
((SceneExt *)BF_GLOBALS._sceneManager._scene)->display(action);
handled = ((SceneExt *)BF_GLOBALS._sceneManager._scene)->display(action);
return handled;
}

Expand Down
13 changes: 13 additions & 0 deletions engines/tsage/blue_force/blueforce_logic.h
Expand Up @@ -124,6 +124,19 @@ class NamedObjectExt: public NamedObject {
}
};

class NamedObject2: public NamedObject {
public:
int _v1, _v2;

NamedObject2() { _v1 = _v2 = 0; }
virtual Common::String getClassName() { return "NamedObject2"; }
virtual void synchronize(Serializer &s) {
NamedObject::synchronize(s);
s.syncAsSint16LE(_v1);
s.syncAsSint16LE(_v2);
}
};

class CountdownObject: public NamedObject {
public:
int _countDown;
Expand Down

0 comments on commit 95467a3

Please sign in to comment.