diff options
author | Paul Gilbert | 2016-08-12 20:07:29 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-08-12 20:07:29 -0400 |
commit | bc9abfadf4230e4666b0c7ee498ceca5e0662189 (patch) | |
tree | 4ca69e325d54f0f6e8ea1535fe1e0779cea11cf7 /engines/titanic/core | |
parent | 15c0f4b274146973f78c422e0237e904efc1f232 (diff) | |
download | scummvm-rg350-bc9abfadf4230e4666b0c7ee498ceca5e0662189.tar.gz scummvm-rg350-bc9abfadf4230e4666b0c7ee498ceca5e0662189.tar.bz2 scummvm-rg350-bc9abfadf4230e4666b0c7ee498ceca5e0662189.zip |
TITANIC: Implemented CArboretumGate class
Diffstat (limited to 'engines/titanic/core')
-rw-r--r-- | engines/titanic/core/game_object.cpp | 4 | ||||
-rw-r--r-- | engines/titanic/core/game_object.h | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/engines/titanic/core/game_object.cpp b/engines/titanic/core/game_object.cpp index 0661f25478..723f2456f3 100644 --- a/engines/titanic/core/game_object.cpp +++ b/engines/titanic/core/game_object.cpp @@ -1172,6 +1172,10 @@ void CGameObject::loadSurface() { _surface->loadIfReady(); } +bool CGameObject::changeView(const CString &viewName) { + return changeView(viewName, ""); +} + bool CGameObject::changeView(const CString &viewName, const CString &clipName) { CViewItem *newView = parseView(viewName); CGameManager *gameManager = getGameManager(); diff --git a/engines/titanic/core/game_object.h b/engines/titanic/core/game_object.h index cad05dea00..2dc539f739 100644 --- a/engines/titanic/core/game_object.h +++ b/engines/titanic/core/game_object.h @@ -336,6 +336,11 @@ protected: bool changeView(const CString &viewName, const CString &clipName); /** + * Change the view + */ + bool changeView(const CString &viewName); + + /** * Get the centre of the game object's bounds */ Point getControid() const; |