◆ loadScene()
bool Sherlock::Scalpel::ScalpelScene::loadScene |
( |
const Common::Path & |
filename | ) |
|
|
overrideprotectedvirtual |
Loads the data associated for a given scene. The room resource file's format is: BGHEADER: Holds an index for the rest of the file STRUCTS: The objects for the scene IMAGES: The graphic information for the structures
The _misc field of the structures contains the number of the graphic image that it should point to after loading; _misc is then set to 0.
Reimplemented from Sherlock::Scene.
◆ checkBgShapes()
void Sherlock::Scalpel::ScalpelScene::checkBgShapes |
( |
| ) |
|
|
overrideprotectedvirtual |
Checks all the background shapes. If a background shape is animating, it will flag it as needing to be drawn. If a non-animating shape is colliding with another shape, it will also flag it as needing drawing
Reimplemented from Sherlock::Scene.
◆ drawAllShapes()
void Sherlock::Scalpel::ScalpelScene::drawAllShapes |
( |
| ) |
|
|
overrideprotectedvirtual |
Draw all the shapes, people and NPCs in the correct order
Implements Sherlock::Scene.
◆ closestZone()
int Sherlock::Scalpel::ScalpelScene::closestZone |
( |
const Common::Point & |
pt | ) |
|
|
overrideprotectedvirtual |
Returns the index of the closest zone to a given point.
Implements Sherlock::Scene.
◆ doBgAnim()
void Sherlock::Scalpel::ScalpelScene::doBgAnim |
( |
| ) |
|
|
overridevirtual |
◆ startCAnim()
int Sherlock::Scalpel::ScalpelScene::startCAnim |
( |
int |
cAnimNum, |
|
|
int |
playRate = 1 |
|
) |
| |
|
overridevirtual |
Attempt to start a canimation sequence. It will load the requisite graphics, and then copy the canim object into the _canimShapes array to start the animation.
- Parameters
-
cAnimNum | The canim object within the current scene |
playRate | Play rate. 0 is invalid; 1=normal speed, 2=1/2 speed, etc. A negative playRate can also be specified to play the animation in reverse |
Implements Sherlock::Scene.
◆ findBgShape()
int Sherlock::Scalpel::ScalpelScene::findBgShape |
( |
const Common::Point & |
pt | ) |
|
|
overridevirtual |
Attempts to find a background shape within the passed bounds. If found, it will return the shape number, or -1 on failure.
Implements Sherlock::Scene.
The documentation for this class was generated from the following file: