Public Member Functions | |
void | goAllTheWay () |
virtual void | walkToCoords (const Point32 &destPos, int destDir)=0 |
virtual void | centerScreenOnPerson () |
Public Member Functions inherited from Sherlock::Sprite | |
void | clear () |
void | setImageFrame () |
void | checkSprite () |
void | setObjTalkSequence (int seq) override |
int | frameWidth () const |
int | frameHeight () const |
const Common::Rect | getOldBounds () const |
virtual void | adjustSprite ()=0 |
virtual void | gotoStand ()=0 |
virtual void | setWalking ()=0 |
Public Member Functions inherited from Sherlock::BaseObject | |
bool | hasAborts () const |
void | checkObject () |
int | checkNameForCodes (const Common::String &name, FixedTextActionId fixedTextActionId=kFixedTextAction_Invalid) |
Public Attributes | |
Common::Queue< Common::Point > | _walkTo |
int | _srcZone |
int | _destZone |
bool | _walkLoaded |
Common::String | _portrait |
Common::Point | _walkDest |
Common::String | _npcName |
Common::Path | _walkVGSName |
Public Attributes inherited from Sherlock::Sprite | |
Common::String | _name |
Common::String | _examine |
Common::String | _pickUp |
WalkSequences | _walkSequences |
Common::Point | _noShapeSize |
int | _status |
int8 | _misc |
ImageFrame * | _stopFrames [8] |
ImageFile * | _altImages |
int | _altSeq |
int | _centerWalk |
Common::Point | _adjust |
int | _oldWalkSequence |
Public Attributes inherited from Sherlock::BaseObject | |
SpriteType | _type |
Common::String | _description |
byte * | _sequences |
ImageFile * | _images |
ImageFrame * | _imageFrame |
int | _sequenceNumber |
int | _startSeq |
int | _walkCount |
int | _allow |
int | _frameNumber |
Point32 | _position |
Point32 | _delta |
Common::Point | _oldPosition |
Common::Point | _oldSize |
Point32 | _goto |
int | _lookFlag |
int | _requiredFlag [2] |
Common::Point | _noShapeSize |
int | _status |
int8 | _misc |
int | _maxFrames |
int | _flags |
AType | _aType |
int | _lookFrames |
int | _seqCounter |
PositionFacing | _lookPosition |
int | _lookcAnim |
int | _seqStack |
int | _seqTo |
uint | _descOffset |
int | _seqCounter2 |
uint | _seqSize |
UseType | _use [6] |
int | _quickDraw |
int | _scaleVal |
int | _gotoSeq |
int | _talkSeq |
int | _restoreSlot |
Protected Member Functions | |
virtual Common::Point | getSourcePoint () const =0 |
Protected Member Functions inherited from Sherlock::BaseObject | |
bool | checkEndOfSequence () |
void | setObjSequence (int seq, bool wait) |
Additional Inherited Members | |
Static Public Member Functions inherited from Sherlock::Sprite | |
static void | setVm (SherlockEngine *vm) |
Static Public Member Functions inherited from Sherlock::BaseObject | |
static void | setVm (SherlockEngine *vm) |
Static Public Attributes inherited from Sherlock::BaseObject | |
static bool | _countCAnimFrames |
Static Protected Attributes inherited from Sherlock::BaseObject | |
static SherlockEngine * | _vm |
|
protectedpure virtual |
Get the source position for a character potentially affected by scaling
Implemented in Sherlock::Tattoo::TattooPerson, and Sherlock::Scalpel::ScalpelPerson.
void Sherlock::Person::goAllTheWay | ( | ) |
Called to set the character walking to the current cursor location. It uses the zones and the inter-zone points to determine a series of steps to walk to get to that position.
|
pure virtual |
Walk to the co-ordinates passed, and then face the given direction
Implemented in Sherlock::Tattoo::TattooPerson, and Sherlock::Scalpel::ScalpelPerson.
|
inlinevirtual |
Center the visible screen so that the person is in the center of the screen
Reimplemented in Sherlock::Tattoo::TattooPerson.