ScummVM API documentation
Gnap::GameSys Class Reference

Public Member Functions

 GameSys (GnapEngine *vm)
 
void insertSequence (int sequenceId, int id, int sequenceId2, int id2, int flags, int totalDuration, int16 x, int16 y)
 
void insertDirtyRect (const Common::Rect &rect)
 
void removeSequence (int sequenceId, int id, bool resetFl)
 
void invalidateGrabCursorSprite (int id, Common::Rect &rect, Graphics::Surface *surface1, Graphics::Surface *surface2)
 
void requestClear2 (bool resetFl)
 
void requestClear1 ()
 
void requestRemoveSequence (int sequenceId, int id)
 
void waitForUpdate ()
 
int isSequenceActive (int sequenceId, int id)
 
void setBackgroundSurface (Graphics::Surface *surface, int a4, int a5, int a6, int a7)
 
void setScaleValues (int a1, int a2, int a3, int a4)
 
void insertSpriteDrawItem (Graphics::Surface *surface, int x, int y, int id)
 
void removeSpriteDrawItem (Graphics::Surface *surface, int id)
 
void drawSpriteToBackground (int x, int y, int resourceId)
 
Graphics::SurfaceallocSurface (int width, int height)
 
Graphics::SurfacecreateSurface (int resourceId)
 
void drawSpriteToSurface (Graphics::Surface *surface, int x, int y, int resourceId)
 
void drawTextToSurface (Graphics::Surface *surface, int x, int y, byte r, byte g, byte b, const char *text)
 
int getTextHeight (const char *text)
 
int getTextWidth (const char *text)
 
void fillSurface (Graphics::Surface *surface, int x, int y, int width, int height, byte r, byte g, byte b)
 
void setAnimation (int sequenceId, int id, int animationIndex)
 
int getAnimationStatus (int animationIndex)
 
int getSpriteWidthById (int resourceId)
 
int getSpriteHeightById (int resourceId)
 
Graphics::SurfaceloadBitmap (int resourceId)
 
void drawBitmap (int resourceId)
 
SequenceseqFind (int sequenceId, int id, int *outIndex)
 
int seqLocateGfx (int sequenceId, int id, int *outGfxIndex)
 
void seqInsertGfx (int index, int duration)
 
void seqRemoveGfx (int sequenceId, int id)
 
bool updateSequenceDuration (int sequenceId, int id, int *outDuration)
 
void updateAnimationsStatus (int sequenceId, int id)
 
void restoreBackgroundRect (const Common::Rect &rect)
 
void blitSurface32 (Graphics::Surface *destSurface, int x, int y, Graphics::Surface *sourceSurface, Common::Rect &sourceRect, bool transparent)
 
void blitSprite32 (Graphics::Surface *destSurface, int x, int y, byte *sourcePixels, int sourceWidth, Common::Rect &sourceRect, uint32 *sourcePalette, bool transparent)
 
void blitSpriteScaled32 (Graphics::Surface *destSurface, Common::Rect &frameRect, Common::Rect &destRect, byte *sourcePixels, int sourceWidth, Common::Rect &sourceRect, uint32 *sourcePalette)
 
void seqDrawStaticFrame (Graphics::Surface *surface, SequenceFrame &frame, Common::Rect *subRect)
 
void seqDrawSpriteFrame (SpriteResource *spriteResource, SequenceFrame &frame, Common::Rect *subRect)
 
void drawSprites ()
 
void updateRect (const Common::Rect &r)
 
void updateScreen ()
 
void handleReqRemoveSequenceItem ()
 
void handleReqRemoveSequenceItems ()
 
void handleReqRemoveSpriteDrawItems ()
 
void fatUpdateFrame ()
 
void fatUpdate ()
 
void updatePlaySounds ()
 

Public Attributes

GnapEngine_vm
 
Common::Array< Common::Rect_dirtyRects
 
SpriteDrawItem _newSpriteDrawItems [kMaxSpriteDrawItems]
 
int _newSpriteDrawItemsCount
 
RemoveSequenceItem _removeSequenceItems [kMaxSequenceItems]
 
int _removeSequenceItemsCount
 
RemoveSpriteDrawItem _removeSpriteDrawItems [kMaxSpriteDrawItems]
 
int _removeSpriteDrawItemsCount
 
int _grabSpriteId
 
Common::Rect _grabSpriteRect
 
bool _grabSpriteChanged
 
Graphics::Surface_grabSpriteSurface1
 
Graphics::Surface_grabSpriteSurface2
 
bool _reqRemoveSequenceItem
 
int _removeSequenceItemSequenceId
 
int _removeSequenceItemValue
 
Common::Array< int > _soundIds
 
Common::Array< Sequence_seqItems
 
Common::Array< Sequence_fatSequenceItems
 
GfxItem _gfxItems [kMaxGfxItems]
 
int _gfxItemsCount
 
Animation _animations [kMaxAnimations]
 
int _animationsCount
 
int _backgroundImageValue3
 
int _backgroundImageValue1
 
int _backgroundImageValue4
 
int _backgroundImageValue2
 
int32 _gameSysClock
 
int32 _lastUpdateClock
 
bool _animationsDone
 
Graphics::Surface_backgroundSurface
 
Graphics::Surface_frontSurface
 
Common::Rect _screenRect
 

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