From 60378fe22883387c9d116764dc631c5cd5a6d3f8 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 3 Jun 2015 21:03:44 -0400 Subject: SHERLOCK: Implemented setObjTalkSequence methods --- engines/sherlock/objects.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'engines/sherlock/objects.h') diff --git a/engines/sherlock/objects.h b/engines/sherlock/objects.h index 936adc57d0..bd32948763 100644 --- a/engines/sherlock/objects.h +++ b/engines/sherlock/objects.h @@ -165,6 +165,12 @@ struct UseType { class Sprite { private: static SherlockEngine *_vm; + + /** + * Checks a sprite associated with an NPC to see if the frame sequence specified + * in the sequence number uses alternate graphics, and if so if they need to be loaded + */ + void checkWalkGraphics(); public: Common::String _name; Common::String _description; @@ -242,6 +248,15 @@ public: */ void checkSprite(); + /** + * Adjusts the frame and sequence variables of a sprite that corresponds to the current speaker + * so that it points to the beginning of the sequence number's talk sequence in the object's + * sequence buffer + * @param seq Which sequence to use (if there's more than 1) + * @remarks 1: First talk seq, 2: second talk seq, etc. + */ + void setObjTalkSequence(int seq); + /** * Return frame width */ -- cgit v1.2.3