diff options
author | Paul Gilbert | 2016-04-28 21:34:22 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-10 16:22:38 -0400 |
commit | 23f5691b97cb53fd45ef411f051b7f10f0523a24 (patch) | |
tree | cee825c0c3bc4af78b22ea691897feb7f4495930 /engines/titanic/pet_control/pet_control.cpp | |
parent | 4fd482e41813f32359eb91a2b62867605af0382c (diff) | |
download | scummvm-rg350-23f5691b97cb53fd45ef411f051b7f10f0523a24.tar.gz scummvm-rg350-23f5691b97cb53fd45ef411f051b7f10f0523a24.tar.bz2 scummvm-rg350-23f5691b97cb53fd45ef411f051b7f10f0523a24.zip |
TITANIC: Implement summoning NPCs
Diffstat (limited to 'engines/titanic/pet_control/pet_control.cpp')
-rw-r--r-- | engines/titanic/pet_control/pet_control.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/titanic/pet_control/pet_control.cpp b/engines/titanic/pet_control/pet_control.cpp index e9a8e79b8b..89ea9e956a 100644 --- a/engines/titanic/pet_control/pet_control.cpp +++ b/engines/titanic/pet_control/pet_control.cpp @@ -475,5 +475,16 @@ bool CPetControl::isNPCInView(const CString &name) const { return false; } +void CPetControl::summonNPC(const CString &name, int val) { + CGameManager *gameManager = getGameManager(); + if (gameManager) { + CRoomItem *room = gameManager->getRoom(); + + if (room) { + CSummonBotMsg summonMsg(name, val); + summonMsg.execute(room); + } + } +} } // End of namespace Titanic |