aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_control.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-28 21:07:41 -0400
committerPaul Gilbert2016-07-10 16:22:37 -0400
commit4fd482e41813f32359eb91a2b62867605af0382c (patch)
treec313e8d26fa0ae0fa00aacb051ac3f22e5f9d538 /engines/titanic/pet_control/pet_control.h
parentff72fc594bae10cd4ac5083d0cf2ca6c412d0f9f (diff)
downloadscummvm-rg350-4fd482e41813f32359eb91a2b62867605af0382c.tar.gz
scummvm-rg350-4fd482e41813f32359eb91a2b62867605af0382c.tar.bz2
scummvm-rg350-4fd482e41813f32359eb91a2b62867605af0382c.zip
TITANIC: Implement checks for whether NPCs can be summoned
Diffstat (limited to 'engines/titanic/pet_control/pet_control.h')
-rw-r--r--engines/titanic/pet_control/pet_control.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/titanic/pet_control/pet_control.h b/engines/titanic/pet_control/pet_control.h
index 78cfb61864..4cde477704 100644
--- a/engines/titanic/pet_control/pet_control.h
+++ b/engines/titanic/pet_control/pet_control.h
@@ -39,6 +39,8 @@
namespace Titanic {
+enum SummonResult { SUMMON_CANT = 0, SUMMON_PRESENT = 1, SUMMON_CAN = 2 };
+
class CPetControl : public CGameObject {
DECLARE_MESSAGE_MAP
private:
@@ -88,6 +90,11 @@ private:
bool containsPt(const Common::Point &pt) const;
bool getC0() const;
+
+ /**
+ * Checks whether a designated NPC in present in the current view
+ */
+ bool isNPCInView(const CString &name) const;
protected:
bool MouseButtonDownMsg(CMouseButtonDownMsg *msg);
bool MouseDragStartMsg(CMouseDragStartMsg *msg);
@@ -250,6 +257,11 @@ public:
* Get the room name
*/
CString getRoomName() const;
+
+ /**
+ * Check whether an NPC can be summoned
+ */
+ int canSummonNPC(const CString &name);
};
} // End of namespace Titanic