ScummVM
Kyra::TextDisplayer_MR Class Reference

#include <text_mr.h>

Inheritance diagram for Kyra::TextDisplayer_MR:
Collaboration diagram for Kyra::TextDisplayer_MR:

Public Member Functions

 TextDisplayer_MR (KyraEngine_MR *vm, Screen_MR *screen)
 
char * preprocessString (const char *str)
 
int dropCRIntoString (char *str, int minOffs, int maxOffs)
 
void printText (const char *str, int x, int y, uint8 c0, uint8 c1, uint8 c2)
 
void restoreScreen ()
 
void calcWidestLineBounds (int &x1, int &x2, int w, int x)
 
- Public Member Functions inherited from Kyra::TextDisplayer
 TextDisplayer (KyraEngine_v1 *vm, Screen *screen)
 
virtual ~TextDisplayer ()
 
int maxSubstringLen () const
 
void setTalkCoords (uint16 y)
 
int getCenterStringX (const char *str, int x1, int x2)
 
int getCharLength (const char *str, int len)
 
int dropCRIntoString (char *str, int offs)
 
int buildMessageSubstrings (const char *str)
 
int getWidestLineWidth (int linesCount)
 
virtual void restoreTalkTextMessageBkgd (int srcPage, int dstPage)
 
void printTalkTextMessage (const char *text, int x, int y, uint8 color, int srcPage, int dstPage)
 
void printCharacterText (const char *text, int8 charNum, int charX)
 
bool printed () const
 

Protected Attributes

KyraEngine_MR_vm
 
Screen_MR_screen
 
- Protected Attributes inherited from Kyra::TextDisplayer
Screen_screen
 
KyraEngine_v1_vm
 
char _talkBuffer [1040]
 
char _talkSubstrings [TALK_SUBSTRING_LEN *TALK_SUBSTRING_NUM]
 
TalkCoords _talkCoords
 
bool _talkMessagePrinted
 

Friends

class KyraEngine_MR
 

Additional Inherited Members

- Public Attributes inherited from Kyra::TextDisplayer
uint16 _talkMessageY
 
uint16 _talkMessageH
 
- Protected Types inherited from Kyra::TextDisplayer
enum  { TALK_SUBSTRING_LEN = 80, TALK_SUBSTRING_NUM = 6 }
 
- Protected Member Functions inherited from Kyra::TextDisplayer
void setTextColor (uint8 color)
 

Detailed Description

Definition at line 32 of file text_mr.h.

Constructor & Destructor Documentation

◆ TextDisplayer_MR()

Kyra::TextDisplayer_MR::TextDisplayer_MR ( KyraEngine_MR vm,
Screen_MR screen 
)

Definition at line 30 of file text_mr.cpp.

Member Function Documentation

◆ calcWidestLineBounds()

void Kyra::TextDisplayer_MR::calcWidestLineBounds ( int x1,
int x2,
int  w,
int  x 
)
virtual

Reimplemented from Kyra::TextDisplayer.

Definition at line 153 of file text_mr.cpp.

◆ dropCRIntoString()

int Kyra::TextDisplayer_MR::dropCRIntoString ( char *  str,
int  minOffs,
int  maxOffs 
)

Definition at line 84 of file text_mr.cpp.

◆ preprocessString()

char * Kyra::TextDisplayer_MR::preprocessString ( const char *  str)
virtual

Reimplemented from Kyra::TextDisplayer.

Definition at line 34 of file text_mr.cpp.

◆ printText()

void Kyra::TextDisplayer_MR::printText ( const char *  str,
int  x,
int  y,
uint8  c0,
uint8  c1,
uint8  c2 
)
virtual

Reimplemented from Kyra::TextDisplayer.

Definition at line 130 of file text_mr.cpp.

◆ restoreScreen()

void Kyra::TextDisplayer_MR::restoreScreen ( )

Definition at line 145 of file text_mr.cpp.

Friends And Related Function Documentation

◆ KyraEngine_MR

friend class KyraEngine_MR
friend

Definition at line 33 of file text_mr.h.

Member Data Documentation

◆ _screen

Screen_MR* Kyra::TextDisplayer_MR::_screen
protected

Definition at line 47 of file text_mr.h.

◆ _vm

KyraEngine_MR* Kyra::TextDisplayer_MR::_vm
protected

Definition at line 46 of file text_mr.h.


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