ScummVM API documentation
Queen::Graphics Class Reference

Public Types

enum  {
  ARROW_BOB_UP = 62, ARROW_BOB_DOWN = 63, MAX_BOBS_NUMBER = 64, MAX_STRING_LENGTH = 255,
  MAX_STRING_SIZE = (MAX_STRING_LENGTH + 1), BOB_SHRINK_BUF_SIZE = 60000
}
 

Public Member Functions

 Graphics (QueenEngine *vm)
 
void unpackControlBank ()
 unpacks control frames (ie. arrows)
 
void setupArrows ()
 setup dialog arrows
 
void setupMouseCursor ()
 setup mouse cursor
 
void drawBob (const BobSlot *bs, const BobFrame *bf, const Box *box, int16 x, int16 y)
 draw a bob
 
void drawInventoryItem (uint32 frameNum, uint16 x, uint16 y)
 draw an inventory item
 
void pasteBob (uint16 objNum, uint16 image)
 draw a bob directly on the backdrop bitmap
 
void shrinkFrame (const BobFrame *bf, uint16 percentage)
 resize a bobframe
 
void sortBobs ()
 animate/move bobs and sort them
 
void drawBobs ()
 draw all the sorted bobs
 
void clearBobs ()
 clear all setup bobs
 
void stopBobs ()
 stop all animating/movings bobs
 
BobSlotbob (int index)
 returns a reference to the specified bob
 
void clearBob (int index)
 
void setBobText (const BobSlot *bob, const char *text, int textX, int textY, int color, int flags)
 display a text 'near' the specified bob
 
void handleParallax (uint16 roomNum)
 handles parallax scrolling for the specified room
 
void setupNewRoom (const char *room, uint16 roomNum, int16 *furniture, uint16 furnitureCount)
 
void setBobCutawayAnim (uint16 bobNum, bool xflip, const AnimFrame *af, uint8 frameCount)
 
void fillAnimBuffer (const char *anim, AnimFrame *af)
 
uint16 countAnimFrames (const char *anim)
 
void setupObjectAnim (const GraphicData *gd, uint16 firstImage, uint16 bobNum, bool visible)
 
uint16 setupPersonAnim (const ActorData *ad, const char *anim, uint16 curImage)
 
void resetPersonAnim (uint16 bobNum)
 
void erasePersonAnim (uint16 bobNum)
 
void eraseAllAnims ()
 
uint16 refreshObject (uint16 obj)
 
void setupRoomFurniture (int16 *furniture, uint16 furnitureCount)
 
void setupRoomObjects ()
 
uint16 setupPerson (uint16 noun, uint16 curImage)
 
uint16 allocPerson (uint16 noun, uint16 curImage)
 
uint16 personFrames (uint16 bobNum) const
 
void clearPersonFrames ()
 
uint16 numFrames () const
 
uint16 numStaticFurniture () const
 
uint16 numAnimatedFurniture () const
 
uint16 numFurnitureFrames () const
 
void putCameraOnBob (int bobNum)
 
void update (uint16 room)
 

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