ScummVM API documentation
Sherlock::Scalpel::ScalpelPeople Class Reference
Inheritance diagram for Sherlock::Scalpel::ScalpelPeople:
Sherlock::People

Public Member Functions

 ScalpelPeople (SherlockEngine *vm)
 
ScalpelPersonoperator[] (PeopleId id)
 
ScalpelPersonoperator[] (int idx)
 
void setTalking (int speaker)
 
void synchronize (Serializer &s) override
 
void setTalkSequence (int speaker, int sequenceNum=1) override
 
const Common::Point restrictToZone (int zoneId, const Common::Point &destPos) override
 
bool loadWalk () override
 
void setListenSequence (int speaker, int sequenceNum=1) override
 
- Public Member Functions inherited from Sherlock::People
Personoperator[] (PeopleId id)
 
Personoperator[] (int idx)
 
void reset ()
 
bool freeWalk ()
 
void clearTalking ()
 
virtual int findSpeaker (int speaker)
 

Additional Inherited Members

- Static Public Member Functions inherited from Sherlock::People
static Peopleinit (SherlockEngine *vm)
 
- Public Attributes inherited from Sherlock::People
Common::Array< PersonData_characters
 
ImageFile_talkPics
 
PositionFacing _savedPos
 
bool _holmesOn
 
bool _portraitLoaded
 
bool _portraitsOn
 
Object _portrait
 
bool _clearingThePortrait
 
bool _allowWalkAbort
 
int _portraitSide
 
bool _speakerFlip
 
bool _holmesFlip
 
int _holmesQuotient
 
bool _forceWalkReload
 
bool _useWalkLib
 
int _walkControl
 
- Protected Member Functions inherited from Sherlock::People
 People (SherlockEngine *vm)
 
- Protected Attributes inherited from Sherlock::People
SherlockEngine_vm
 
Common::Array< Person * > _data
 

Member Function Documentation

◆ setTalking()

void Sherlock::Scalpel::ScalpelPeople::setTalking ( int  speaker)

Setup the data for an animating speaker portrait at the top of the screen

◆ synchronize()

void Sherlock::Scalpel::ScalpelPeople::synchronize ( Serializer s)
overridevirtual

Synchronize the data for a savegame

Implements Sherlock::People.

◆ setTalkSequence()

void Sherlock::Scalpel::ScalpelPeople::setTalkSequence ( int  speaker,
int  sequenceNum = 1 
)
overridevirtual

Change the sequence of the scene background object associated with the specified speaker.

Implements Sherlock::People.

◆ restrictToZone()

const Common::Point Sherlock::Scalpel::ScalpelPeople::restrictToZone ( int  zoneId,
const Common::Point destPos 
)
overridevirtual

Restrict passed point to zone using Sherlock's positioning rules

Implements Sherlock::People.

◆ loadWalk()

bool Sherlock::Scalpel::ScalpelPeople::loadWalk ( )
overridevirtual

Load the walking images for Sherlock

Implements Sherlock::People.

◆ setListenSequence()

void Sherlock::Scalpel::ScalpelPeople::setListenSequence ( int  speaker,
int  sequenceNum = 1 
)
overridevirtual

If the specified speaker is a background object, it will set it so that it uses the Listen Sequence (specified by the sequence number). If the current sequence has an Allow Talk Code in it, the _gotoSeq field will be set so that the object begins listening as soon as it hits the Allow Talk Code. If there is no Abort Code, the Listen Sequence will begin immediately.

Parameters
speakerWho is speaking
sequenceNumWhich listen sequence to use

Implements Sherlock::People.


The documentation for this class was generated from the following file: