ScummVM API documentation
Toltecs::Screen Class Reference

Classes

struct  Rect
 
struct  VerbLineItem
 

Public Member Functions

 Screen (ToltecsEngine *vm)
 
void unpackRle (byte *source, byte *dest, uint16 width, uint16 height)
 
void loadMouseCursor (uint resIndex)
 
void drawGuiImage (int16 x, int16 y, uint resIndex)
 
void startShakeScreen (int16 shakeCounter)
 
void stopShakeScreen ()
 
bool updateShakeScreen ()
 
void addStaticSprite (byte *spriteItem)
 
void addAnimatedSprite (int16 x, int16 y, int16 fragmentId, byte *data, int16 *spriteArray, bool loop, int mode)
 
void drawSprite (const SpriteDrawItem &sprite)
 
void drawSpriteCore (byte *dest, SpriteFilter &reader, const SpriteDrawItem &sprite)
 
void blastSprite (int16 x, int16 y, int16 fragmentId, int16 resIndex, uint16 flags)
 
void updateVerbLine (int16 slotIndex, int16 slotOffset)
 
void updateTalkText (int16 slotIndex, int16 slotOffset, bool alwaysDisplayed)
 
void addTalkTextRect (Font &font, int16 x, int16 &y, int16 length, int16 width, TalkTextItem *item)
 
void addTalkTextItemsToRenderQueue ()
 
int16 getTalkTextDuration ()
 
bool isTalkTextActive (int16 slotIndex)
 
void finishTalkTextItem (int16 slotIndex)
 
void finishTalkTextItems ()
 
void keepTalkTextItemsAlive ()
 
void registerFont (uint fontIndex, uint resIndex)
 
void drawGuiTextMulti (byte *textData)
 
int16 wrapGuiText (uint fontResIndex, int maxWidth, GuiTextWrapState &wrapState)
 
void drawGuiText (int16 x, int16 y, byte fontColor1, byte fontColor2, uint fontResIndex, GuiTextWrapState &wrapState)
 
int16 drawString (int16 x, int16 y, byte color, uint fontResIndex, const byte *text, int len=-1, int16 *ywobble=NULL, bool outline=false)
 
void drawChar (const Font &font, byte *dest, int16 x, int16 y, byte ch, byte color, bool outline)
 
void drawSurface (int16 x, int16 y, Graphics::Surface *surface)
 
void saveState (Common::WriteStream *out)
 
void loadState (Common::ReadStream *in)
 
uint getFontResIndex (int fontNum) const
 
bool createSpriteDrawItem (const DrawRequest &drawRequest, SpriteDrawItem &sprite)
 
void addDrawRequest (const DrawRequest &drawRequest)
 

Public Attributes

ToltecsEngine_vm
 
byte * _frontScreen
 
byte * _backScreen
 
uint _fontResIndexArray [10]
 
byte _fontColor1
 
byte _fontColor2
 
bool _shakeActive
 
uint32 _shakeTime
 
int16 _shakeCounterInit
 
int16 _shakeCounter
 
int _shakePos
 
int16 _verbLineNum
 
VerbLineItem _verbLineItems [8]
 
int16 _verbLineX
 
int16 _verbLineY
 
int16 _verbLineWidth
 
int16 _verbLineCount
 
int16 _talkTextX
 
int16 _talkTextY
 
int16 _talkTextMaxWidth
 
byte _talkTextFontColor
 
int16 _talkTextItemNum
 
TalkTextItem _talkTextItems [5]
 
RenderQueue_renderQueue
 
bool _fullRefresh
 
bool _guiRefresh
 

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