Skip to content

Commit

Permalink
TITANIC: Implemented CArboretumGate class
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Aug 13, 2016
1 parent 15c0f4b commit bc9abfa
Show file tree
Hide file tree
Showing 5 changed files with 311 additions and 123 deletions.
4 changes: 4 additions & 0 deletions engines/titanic/core/game_object.cpp
Expand Up @@ -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();
Expand Down
5 changes: 5 additions & 0 deletions engines/titanic/core/game_object.h
Expand Up @@ -335,6 +335,11 @@ class CGameObject : public CNamedItem {
*/
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
*/
Expand Down

0 comments on commit bc9abfa

Please sign in to comment.