aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/objects.h
diff options
context:
space:
mode:
authorPaul Gilbert2015-06-03 21:03:44 -0400
committerPaul Gilbert2015-06-03 21:03:44 -0400
commit60378fe22883387c9d116764dc631c5cd5a6d3f8 (patch)
treea1503969168bb2775a29b82fdd57a722a12c5421 /engines/sherlock/objects.h
parentbc7127c52222fc98c36f6b33b534acdcb10027c8 (diff)
downloadscummvm-rg350-60378fe22883387c9d116764dc631c5cd5a6d3f8.tar.gz
scummvm-rg350-60378fe22883387c9d116764dc631c5cd5a6d3f8.tar.bz2
scummvm-rg350-60378fe22883387c9d116764dc631c5cd5a6d3f8.zip
SHERLOCK: Implemented setObjTalkSequence methods
Diffstat (limited to 'engines/sherlock/objects.h')
-rw-r--r--engines/sherlock/objects.h15
1 files changed, 15 insertions, 0 deletions
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;
@@ -243,6 +249,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
*/
int frameWidth() const { return _imageFrame ? _imageFrame->_frame.w : 0; }