aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/main_game_window.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-03-13 15:30:12 -0400
committerPaul Gilbert2016-03-13 15:30:12 -0400
commit819b773491b728ab0be933ffdcfc333e20d582d3 (patch)
treea86fae67694035ccae76ced14777cb7b668e7eec /engines/titanic/main_game_window.cpp
parentc92bf22f0331fbdbc7e440b43ae1973b679befb3 (diff)
downloadscummvm-rg350-819b773491b728ab0be933ffdcfc333e20d582d3.tar.gz
scummvm-rg350-819b773491b728ab0be933ffdcfc333e20d582d3.tar.bz2
scummvm-rg350-819b773491b728ab0be933ffdcfc333e20d582d3.zip
TITANIC: Add message generation at end of applicationStarting
Diffstat (limited to 'engines/titanic/main_game_window.cpp')
-rw-r--r--engines/titanic/main_game_window.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/engines/titanic/main_game_window.cpp b/engines/titanic/main_game_window.cpp
index 18f8dca984..01996e6b13 100644
--- a/engines/titanic/main_game_window.cpp
+++ b/engines/titanic/main_game_window.cpp
@@ -24,6 +24,7 @@
#include "titanic/main_game_window.h"
#include "titanic/game_manager.h"
#include "titanic/game_view.h"
+#include "titanic/messages/messages.h"
namespace Titanic {
@@ -65,7 +66,22 @@ void CMainGameWindow::applicationStarting() {
// Load either a new game or selected existing save
_project->loadGame(saveSlot);
- // TODO: Cursor/image and message generation
+ // TODO: Cursor/image
+
+ // Generate starting messages
+ CViewItem *view = _gameManager->_gameState._gameLocation.getView();
+ CEnterViewMsg enterViewMsg(view);
+ enterViewMsg.execute(view, nullptr, MSGFLAG_SCAN);
+
+ CNodeItem *node = view->findNode();
+ CEnterNodeMsg enterNodeMsg(node);
+ enterNodeMsg.execute(node, nullptr, MSGFLAG_SCAN);
+
+ CRoomItem *room = view->findRoom();
+ CEnterRoomMsg enterRoomMsg(room);
+ enterRoomMsg.execute(room, nullptr, MSGFLAG_SCAN);
+
+ _gameManager->initBounds();
}
int CMainGameWindow::loadGame() {