diff options
author | Paul Gilbert | 2016-04-11 22:59:58 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-10 16:10:57 -0400 |
commit | 36d60d7476b62aef07914325adb6f9fd7b30132f (patch) | |
tree | 84134f3d1573046776784334b0d324083f6b7789 /engines/titanic/core/game_object.cpp | |
parent | 7ac4f7c3aa26831f771418472472735cf73bade9 (diff) | |
download | scummvm-rg350-36d60d7476b62aef07914325adb6f9fd7b30132f.tar.gz scummvm-rg350-36d60d7476b62aef07914325adb6f9fd7b30132f.tar.bz2 scummvm-rg350-36d60d7476b62aef07914325adb6f9fd7b30132f.zip |
TITANIC: Added remainder of CCarry msg handlers
Diffstat (limited to 'engines/titanic/core/game_object.cpp')
-rw-r--r-- | engines/titanic/core/game_object.cpp | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/engines/titanic/core/game_object.cpp b/engines/titanic/core/game_object.cpp index 7e731bdbe7..0bd246d529 100644 --- a/engines/titanic/core/game_object.cpp +++ b/engines/titanic/core/game_object.cpp @@ -405,7 +405,7 @@ void CGameObject::resetPosition() { setPosition(_savedPos); } -void CGameObject::setPosition(const Common::Point &newPos) { +void CGameObject::setPosition(const Point &newPos) { makeDirty(); _bounds.moveTo(newPos); makeDirty(); @@ -540,4 +540,22 @@ CViewItem *CGameObject::parseView(const CString &viewString) { return view; } +CString CGameObject::getViewFullName() const { + CGameManager *gameManager = getGameManager(); + CViewItem *view = gameManager->getView(); + CNodeItem *node = view->findNode(); + CRoomItem *room = node->findRoom(); + + return CString::format("%s.%s.%s", room->getName().c_str(), + node->getName().c_str(), view->getName().c_str()); +} + +void CGameObject::sleep(uint milli) { + g_vm->_events->sleep(milli); +} + +Point CGameObject::getMousePos() const { + return getGameManager()->_gameState.getMousePos(); +} + } // End of namespace Titanic |