ScummVM API documentation
Sherlock::Scalpel::ScalpelMap Class Reference
Inheritance diagram for Sherlock::Scalpel::ScalpelMap:
Sherlock::Map

Public Member Functions

 ScalpelMap (SherlockEngine *vm)
 
const MapEntryoperator[] (int idx)
 
void loadPoints (int count, const int *xList, const int *yList, const int *transList)
 
void loadSequences (int count, const byte *seq)
 
int show () override
 
- Public Member Functions inherited from Sherlock::Map
void synchronize (Serializer &s)
 

Protected Member Functions

void loadData ()
 
void setupSprites ()
 
void freeSprites ()
 
void showPlaces ()
 
void saveTopLine ()
 
void eraseTopLine ()
 
void showPlaceName (int idx, bool highlighted)
 
void updateMap (bool flushScreen)
 
void walkTheStreets ()
 
void saveIcon (ImageFrame *src, const Common::Point &pt)
 
void restoreIcon ()
 
void highlightIcon (const Common::Point &pt)
 
- Protected Member Functions inherited from Sherlock::Map
 Map (SherlockEngine *vm)
 

Additional Inherited Members

- Static Public Member Functions inherited from Sherlock::Map
static Mapinit (SherlockEngine *vm)
 
- Public Attributes inherited from Sherlock::Map
Point32 _overPos
 
Point32 _bigPos
 
int _charPoint
 
int _oldCharPoint
 
bool _active
 
bool _frameChangeFlag
 
- Protected Attributes inherited from Sherlock::Map
SherlockEngine_vm
 

Member Function Documentation

◆ loadData()

void Sherlock::Scalpel::ScalpelMap::loadData ( )
protected

Load data needed for the map

◆ setupSprites()

void Sherlock::Scalpel::ScalpelMap::setupSprites ( )
protected

Load and initialize all the sprites that are needed for the map display

◆ freeSprites()

void Sherlock::Scalpel::ScalpelMap::freeSprites ( )
protected

Free the sprites and data used by the map

◆ showPlaces()

void Sherlock::Scalpel::ScalpelMap::showPlaces ( )
protected

Draws an icon for every place that's currently known

◆ saveTopLine()

void Sherlock::Scalpel::ScalpelMap::saveTopLine ( )
protected

Makes a copy of the top rows of the screen that are used to display location names

◆ eraseTopLine()

void Sherlock::Scalpel::ScalpelMap::eraseTopLine ( )
protected

Erases anything shown in the top line by restoring the previously saved original map background

◆ showPlaceName()

void Sherlock::Scalpel::ScalpelMap::showPlaceName ( int  idx,
bool  highlighted 
)
protected

Prints the name of the specified icon

◆ updateMap()

void Sherlock::Scalpel::ScalpelMap::updateMap ( bool  flushScreen)
protected

Update all on-screen sprites to account for any scrolling of the map

◆ walkTheStreets()

void Sherlock::Scalpel::ScalpelMap::walkTheStreets ( )
protected

Handle moving icon for player from their previous location on the map to a destination location

◆ saveIcon()

void Sherlock::Scalpel::ScalpelMap::saveIcon ( ImageFrame src,
const Common::Point pt 
)
protected

Save the area under the player's icon

◆ restoreIcon()

void Sherlock::Scalpel::ScalpelMap::restoreIcon ( )
protected

Restore the area under the player's icon

◆ highlightIcon()

void Sherlock::Scalpel::ScalpelMap::highlightIcon ( const Common::Point pt)
protected

Handles highlighting map icons, showing their names

◆ loadPoints()

void Sherlock::Scalpel::ScalpelMap::loadPoints ( int  count,
const int *  xList,
const int *  yList,
const int *  transList 
)

Loads the list of points for locations on the map for each scene

◆ loadSequences()

void Sherlock::Scalpel::ScalpelMap::loadSequences ( int  count,
const byte *  seq 
)

Load the sequence data for player icon animations

◆ show()

int Sherlock::Scalpel::ScalpelMap::show ( )
overridevirtual

Show the map

Implements Sherlock::Map.


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