Public Member Functions | |
void | load (Common::SeekableReadStream &s, bool isRoseTattoo) |
void | load3DO (Common::SeekableReadStream &s) |
void | toggleHidden () |
void | setFlagsAndToggles () |
void | adjustObject () |
int | pickUpObject (FixedTextActionId fixedTextActionId=kFixedTextAction_Invalid) |
int | frameWidth () const |
int | frameHeight () const |
const Common::Rect | getNewBounds () const |
const Common::Rect | getNoShapeBounds () const |
const Common::Rect | getOldBounds () const |
void | setObjTalkSequence (int seq) override |
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::String | _name |
Common::String | _examine |
int | _sequenceOffset |
int | _pickup |
int | _defaultCommand |
int | _pickupFlag |
ActionType | _aOpen |
ActionType | _aClose |
ActionType | _aMove |
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 |
Additional Inherited Members | |
Static Public Member Functions inherited from Sherlock::BaseObject | |
static void | setVm (SherlockEngine *vm) |
Static Public Attributes inherited from Sherlock::BaseObject | |
static bool | _countCAnimFrames |
Protected Member Functions inherited from Sherlock::BaseObject | |
bool | checkEndOfSequence () |
void | setObjSequence (int seq, bool wait) |
Static Protected Attributes inherited from Sherlock::BaseObject | |
static SherlockEngine * | _vm |
void Sherlock::Object::load | ( | Common::SeekableReadStream & | s, |
bool | isRoseTattoo | ||
) |
Load the data for the object
void Sherlock::Object::toggleHidden | ( | ) |
Toggle the type of an object between hidden and active
void Sherlock::Object::setFlagsAndToggles | ( | ) |
Handle setting any flags associated with the object
void Sherlock::Object::adjustObject | ( | ) |
Adjusts the sprite's position and animation sequence, advancing by 1 frame. If the end of the sequence is reached, the appropriate action is taken.
int Sherlock::Object::pickUpObject | ( | FixedTextActionId | fixedTextActionId = kFixedTextAction_Invalid | ) |
Handles trying to pick up an object. If allowed, plays an y necessary animation for picking up the item, and then adds it to the player's inventory
|
inline |
Return the frame width
|
inline |
Return the frame height
const Common::Rect Sherlock::Object::getNewBounds | ( | ) | const |
Returns the current bounds for the sprite
const Common::Rect Sherlock::Object::getNoShapeBounds | ( | ) | const |
Returns the bounds for a sprite without a shape
const Common::Rect Sherlock::Object::getOldBounds | ( | ) | const |
Returns the old bounsd for the sprite from the previous frame
|
overridevirtual |
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
seq | Which sequence to use (if there's more than 1) |
Reimplemented from Sherlock::BaseObject.