ScummVM API documentation
Gob::Geisha::Mouth Class Reference

#include <mouth.h>

Inheritance diagram for Gob::Geisha::Mouth:
Gob::ANIObject Gob::BackBuffer

Public Member Functions

 Mouth (const ANIFile &ani, const CMPFile &cmp, uint16 mouthAnim, uint16 mouthSprite, uint16 floorSprite)
 
void advance () override
 
void activate ()
 
bool isDeactivated () const
 
void setPosition (int16 x, int16 y) override
 
bool draw (Surface &dest, int16 &left, int16 &top, int16 &right, int16 &bottom) override
 
bool clear (Surface &dest, int16 &left, int16 &top, int16 &right, int16 &bottom) override
 
- Public Member Functions inherited from Gob::ANIObject
 ANIObject (const ANIFile &ani)
 
 ANIObject (const CMPFile &cmp)
 
void setVisible (bool visible)
 
bool isVisible () const
 
void setPause (bool pause)
 
bool isPaused () const
 
void setMode (Mode mode)
 
virtual void setPosition ()
 
void getPosition (int16 &x, int16 &y) const
 
void getFramePosition (int16 &x, int16 &y, uint16 n=0) const
 
void getFrameSize (int16 &width, int16 &height, uint16 n=0) const
 
bool isIn (int16 x, int16 y) const
 
bool isIn (const ANIObject &obj) const
 
void setAnimation (uint16 animation)
 
void rewind ()
 
void setFrame (uint16 frame)
 
uint16 getAnimation () const
 
uint16 getFrame () const
 
bool lastFrame () const
 

Additional Inherited Members

- Public Types inherited from Gob::ANIObject
enum  Mode { kModeContinuous, kModeOnce }
 
- Protected Member Functions inherited from Gob::BackBuffer
void trashBuffer ()
 
void resizeBuffer (uint16 width, uint16 height)
 
bool saveScreen (const Surface &dest, int16 &left, int16 &top, int16 &right, int16 &bottom)
 
bool restoreScreen (Surface &dest, int16 &left, int16 &top, int16 &right, int16 &bottom)
 
bool hasBuffer () const
 
bool hasSavedBackground () const
 

Detailed Description

A kissing/biting mouth in Geisha's "Penetration" minigame.

Member Function Documentation

◆ advance()

void Gob::Geisha::Mouth::advance ( )
overridevirtual

Advance the animation to the next frame.

Reimplemented from Gob::ANIObject.

◆ activate()

void Gob::Geisha::Mouth::activate ( )

Active the mouth's animation.

◆ isDeactivated()

bool Gob::Geisha::Mouth::isDeactivated ( ) const

Is the mouth deactivated?

◆ setPosition()

void Gob::Geisha::Mouth::setPosition ( int16  x,
int16  y 
)
overridevirtual

Set the current position.

Reimplemented from Gob::ANIObject.

◆ draw()

bool Gob::Geisha::Mouth::draw ( Surface dest,
int16 &  left,
int16 &  top,
int16 &  right,
int16 &  bottom 
)
overridevirtual

Draw the current frame onto the surface and return the affected rectangle.

Reimplemented from Gob::ANIObject.

◆ clear()

bool Gob::Geisha::Mouth::clear ( Surface dest,
int16 &  left,
int16 &  top,
int16 &  right,
int16 &  bottom 
)
overridevirtual

Draw the current frame from the surface and return the affected rectangle.

Reimplemented from Gob::ANIObject.


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