ScummVM API documentation
Ultima::Ultima3::Gfx::MessageLog Class Reference

#include <message_log.h>

Public Member Functions

void clear ()
 
void print (const char *text)
 
void putChar (char ch)
 
void backspace (int count)
 
void draw (Graphics::Views::GfxSurface &s, bool showCursor) const
 

Detailed Description

The scrolling message window at the bottom right of the game screen: seven lines of sixteen characters, with text always added to the bottom line

Member Function Documentation

◆ clear()

void Ultima::Ultima3::Gfx::MessageLog::clear ( )

Clears the window

◆ print()

void Ultima::Ultima3::Gfx::MessageLog::print ( const char *  text)

Adds text at the cursor. A newline scrolls the window up, as does running off the end of the bottom line

◆ putChar()

void Ultima::Ultima3::Gfx::MessageLog::putChar ( char  ch)

Adds a single character (including the glyphs used for prompts) at the cursor without wrapping

◆ backspace()

void Ultima::Ultima3::Gfx::MessageLog::backspace ( int  count)

Takes back the last characters added to the bottom line

◆ draw()

void Ultima::Ultima3::Gfx::MessageLog::draw ( Graphics::Views::GfxSurface &  s,
bool  showCursor 
) const

Draws the window, with the cursor arrow shown if waiting for input


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