ScummVM API documentation
Made::Screen Class Reference

Public Member Functions

 Screen (MadeEngine *vm)
 
void clearScreen ()
 
void drawSurface (Graphics::Surface *sourceSurface, int x, int y, int16 flipX, int16 flipY, int16 mask, const ClipInfo &clipInfo)
 
void setRGBPalette (byte *palRGB, int start=0, int count=256)
 
bool isPaletteLocked ()
 
void setPaletteLock (bool lock)
 
bool isScreenLocked ()
 
void setScreenLock (bool lock)
 
void setVisualEffectNum (int visualEffectNum)
 
void setClipArea (uint16 x1, uint16 y1, uint16 x2, uint16 y2)
 
void setExcludeArea (uint16 x1, uint16 y1, uint16 x2, uint16 y2)
 
void setClip (int16 clip)
 
void setExclude (int16 exclude)
 
void setGround (int16 ground)
 
void setMask (int16 mask)
 
void setTextColor (int16 color)
 
void setTextRect (const Common::Rect &textRect)
 
void getTextRect (Common::Rect &textRect)
 
void setOutlineColor (int16 color)
 
void setDropShadowColor (int16 color)
 
void setTextXY (int16 x, int16 y)
 
void homeText ()
 
uint16 updateChannel (uint16 channelIndex)
 
void deleteChannel (uint16 channelIndex)
 
int16 getChannelType (uint16 channelIndex)
 
int16 getChannelState (uint16 channelIndex)
 
void setChannelState (uint16 channelIndex, int16 state)
 
uint16 setChannelLocation (uint16 channelIndex, int16 x, int16 y)
 
uint16 setChannelContent (uint16 channelIndex, uint16 index)
 
void setChannelUseMask (uint16 channelIndex)
 
void drawSpriteChannels (const ClipInfo &clipInfo, int16 includeStateMask, int16 excludeStateMask)
 
void updateSprites ()
 
void clearChannels ()
 
uint16 drawFlex (uint16 flexIndex, int16 x, int16 y, int16 flipX, int16 flipY, int16 mask, const ClipInfo &clipInfo)
 
void drawAnimFrame (uint16 animIndex, int16 x, int16 y, int16 frameNum, int16 flipX, int16 flipY, const ClipInfo &clipInfo)
 
uint16 drawPic (uint16 index, int16 x, int16 y, int16 flipX, int16 flipY)
 
uint16 drawMask (uint16 index, int16 x, int16 y)
 
uint16 drawAnimPic (uint16 animIndex, int16 x, int16 y, int16 frameNum, int16 flipX, int16 flipY)
 
void addSprite (uint16 spriteIndex)
 
uint16 drawSprite (uint16 flexIndex, int16 x, int16 y)
 
uint16 placeSprite (uint16 channelIndex, uint16 flexIndex, int16 x, int16 y)
 
uint16 placeAnim (uint16 channelIndex, uint16 animIndex, int16 x, int16 y, int16 frameNum)
 
int16 setAnimFrame (uint16 channelIndex, int16 frameNum)
 
int16 getAnimFrame (uint16 channelIndex)
 
uint16 placeText (uint16 channelIndex, uint16 textObjectIndex, int16 x, int16 y, uint16 fontNum, int16 textColor, int16 outlineColor)
 
void show ()
 
void flash (int count)
 
void setFont (int16 fontNum)
 
void printChar (uint c, int16 x, int16 y, byte color)
 
void printText (const char *text)
 
void printTextEx (const char *text, int16 x, int16 y, int16 fontNum, int16 textColor, int16 outlineColor, const ClipInfo &clipInfo)
 
void printObjectText (int16 objectIndex, int16 x, int16 y, int16 fontNum, int16 textColor, int16 outlineColor, const ClipInfo &clipInfo)
 
int16 getTextWidth (int16 fontNum, const char *text)
 
Graphics::SurfacelockScreen ()
 
void unlockScreen ()
 
void showWorkScreen ()
 
void copyRectToScreen (const void *buf, int pitch, int x, int y, int w, int h)
 
void updateScreenAndWait (int delay)
 
int16 addToSpriteList (int16 index, int16 xofs, int16 yofs)
 
SpriteListItem getFromSpriteList (int16 index)
 
void clearSpriteList ()
 
void setDefaultMouseCursor ()
 

Protected Attributes

MadeEngine_vm
 
ScreenEffects_fx
 
bool _screenLock
 
bool _paletteLock
 
byte * _palette
 
byte * _newPalette
 
int _paletteColorCount
 
int _oldPaletteColorCount
 
bool _paletteInitialized
 
bool _needPalette
 
int16 _textColor
 
int16 _outlineColor
 
int16 _dropShadowColor
 
int16 _textX
 
int16 _textY
 
Common::Rect _textRect
 
int16 _currentFontNum
 
FontResource_font
 
ClipInfo _fontDrawCtx
 
int16 _clip
 
int16 _exclude
 
int16 _ground
 
int16 _mask
 
int _visualEffectNum
 
Graphics::Surface_backgroundScreen
 
Graphics::Surface_workScreen
 
Graphics::Surface_screenMask
 
ClipInfo _clipArea
 
ClipInfo _backgroundScreenDrawCtx
 
ClipInfo _workScreenDrawCtx
 
ClipInfo _maskDrawCtx
 
ClipInfo _excludeClipArea [4]
 
bool _excludeClipAreaEnabled [4]
 
uint16 _channelsUsedCount
 
SpriteChannel _channels [100]
 
Common::Array< SpriteListItem_spriteList
 

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