ScummVM API documentation
Xeen::Subtitles Class Reference

Public Member Functions

 Subtitles ()
 
virtual ~Subtitles ()
 
void setLine (int line)
 
void reset ()
 
bool active () const
 
bool lineActive () const
 
void show ()
 
bool wait (uint numFrames, bool interruptable=true)
 
bool waitForLineOrSound ()
 

Constructor & Destructor Documentation

◆ Subtitles()

Xeen::Subtitles::Subtitles ( )

Constructor

◆ ~Subtitles()

virtual Xeen::Subtitles::~Subtitles ( )
virtual

Destructor

Member Function Documentation

◆ setLine()

void Xeen::Subtitles::setLine ( int  line)

Set which subtitle line to display

◆ reset()

void Xeen::Subtitles::reset ( )

Resets subtitles, stopping any display

◆ active()

bool Xeen::Subtitles::active ( ) const

Returns true if a subtitle is active

◆ lineActive()

bool Xeen::Subtitles::lineActive ( ) const

Returns true if a subtitle is active or a voice line is currently being played

◆ show()

void Xeen::Subtitles::show ( )

Shows any active subtitle

◆ wait()

bool Xeen::Subtitles::wait ( uint  numFrames,
bool  interruptable = true 
)

Waits for a given number of frames

Parameters
numFramesNumber of frames to wait
interruptableIf set, aborts if the mouse or a key is pressed
Returns
True if the wait was aborted

◆ waitForLineOrSound()

bool Xeen::Subtitles::waitForLineOrSound ( )

Wait for the end of currently playing sound or subtitles line


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