ScummVM API documentation
Alcachofa::Character Class Reference
Inheritance diagram for Alcachofa::Character:
Alcachofa::ShapeObject Alcachofa::ITriggerableObject Alcachofa::ObjectBase Alcachofa::WalkingCharacter Alcachofa::MainCharacter

Public Member Functions

 Character (Room *room, Common::SeekableReadStream &stream)
 
void update () override
 
void draw () override
 
void drawDebug () override
 
void loadResources () override
 
void freeResources () override
 
void syncGame (Common::Serializer &serializer) override
 
Graphic * graphic () override
 
void onClick () override
 
void trigger (const char *action) override
 
const char * typeName () const override
 
Task * sayText (Process &process, int32 dialogId, const char *dialogSound)
 
void resetTalking ()
 
void talkUsing (ObjectBase *talkObject)
 
Task * animate (Process &process, ObjectBase *animateObject)
 
Task * lerpLodBias (Process &process, float targetLodBias, int32 durationMs)
 
float & lodBias ()
 
bool & isSpeaking ()
 
- Public Member Functions inherited from Alcachofa::ShapeObject
 ShapeObject (Room *room, Common::SeekableReadStream &stream)
 
int8 order () const
 
bool isNewlySelected () const
 
bool wasSelected () const
 
void update () override
 
void syncGame (Common::Serializer &serializer) override
 
Shape * shape () override
 
virtual CursorType cursorType () const
 
virtual void onHoverStart ()
 
virtual void onHoverEnd ()
 
virtual void onHoverUpdate ()
 
virtual void onClick ()
 
const char * typeName () const override
 
void markSelected ()
 
- Public Member Functions inherited from Alcachofa::ObjectBase
 ObjectBase (Room *room, const char *name)
 
 ObjectBase (Room *room, Common::SeekableReadStream &stream)
 
const Common::String & name () const
 
Room *& room ()
 
Room * room () const
 
bool isEnabled () const
 
virtual void toggle (bool isEnabled)
 
virtual void draw ()
 
virtual void drawDebug ()
 
virtual void update ()
 
virtual void loadResources ()
 
virtual void freeResources ()
 
virtual void syncGame (Common::Serializer &serializer)
 
virtual Graphic * graphic ()
 
virtual Shape * shape ()
 
virtual const char * typeName () const
 
- Public Member Functions inherited from Alcachofa::ITriggerableObject
 ITriggerableObject (Common::SeekableReadStream &stream)
 
Direction interactionDirection () const
 
Common::Point interactionPoint () const
 
virtual void trigger (const char *action)=0
 

Static Public Attributes

static constexpr const char * kClassName = "CPersonaje"
 
- Static Public Attributes inherited from Alcachofa::ObjectBase
static constexpr const char * kClassName = "CObjetoBase"
 

Protected Member Functions

void syncObjectAsString (Common::Serializer &serializer, ObjectBase *&object)
 
void updateTalkingAnimation ()
 
- Protected Member Functions inherited from Alcachofa::ShapeObject
void updateSelection ()
 
- Protected Member Functions inherited from Alcachofa::ITriggerableObject
void read (Common::SeekableReadStream &stream)
 
void onClick ()
 

Protected Attributes

Graphic _graphicNormal
 
Graphic _graphicTalking
 
bool _isTalking = false
 as in "in the process of saying a line"
 
bool _isSpeaking = true
 as in "actively moving their mouth to produce sounds", used in updateTalkingAnimation
 
int _curDialogId = -1
 
float _lodBias = 0.0f
 
ObjectBase * _curAnimateObject = nullptr
 
ObjectBase * _curTalkingObject = nullptr
 
- Protected Attributes inherited from Alcachofa::ShapeObject
int8 _order = 0
 
- Protected Attributes inherited from Alcachofa::ITriggerableObject
Common::Point _interactionPoint
 
Direction _interactionDirection = Direction::Right
 

Member Function Documentation

◆ update()

void Alcachofa::Character::update ( )
overridevirtual

Reimplemented from Alcachofa::ShapeObject.

◆ draw()

void Alcachofa::Character::draw ( )
overridevirtual

Reimplemented from Alcachofa::ObjectBase.

◆ drawDebug()

void Alcachofa::Character::drawDebug ( )
overridevirtual

Reimplemented from Alcachofa::ObjectBase.

◆ loadResources()

void Alcachofa::Character::loadResources ( )
overridevirtual

Reimplemented from Alcachofa::ObjectBase.

◆ freeResources()

void Alcachofa::Character::freeResources ( )
overridevirtual

Reimplemented from Alcachofa::ObjectBase.

◆ syncGame()

void Alcachofa::Character::syncGame ( Common::Serializer &  serializer)
overridevirtual

Reimplemented from Alcachofa::ShapeObject.

◆ graphic()

Graphic * Alcachofa::Character::graphic ( )
overridevirtual

Reimplemented from Alcachofa::ObjectBase.

◆ onClick()

void Alcachofa::Character::onClick ( )
overridevirtual

Reimplemented from Alcachofa::ShapeObject.

◆ trigger()

void Alcachofa::Character::trigger ( const char *  action)
overridevirtual

◆ typeName()

const char * Alcachofa::Character::typeName ( ) const
overridevirtual

Reimplemented from Alcachofa::ShapeObject.


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