◆ loadScene()
bool Sherlock::Tattoo::TattooScene::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::Tattoo::TattooScene::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::Tattoo::TattooScene::drawAllShapes |
( |
| ) |
|
|
overrideprotectedvirtual |
Draw all the shapes, people and NPCs in the correct order
Implements Sherlock::Scene.
◆ paletteLoaded()
void Sherlock::Tattoo::TattooScene::paletteLoaded |
( |
| ) |
|
|
overrideprotectedvirtual |
Called by loadScene when the palette is loaded for Rose Tattoo
Reimplemented from Sherlock::Scene.
◆ synchronize()
void Sherlock::Tattoo::TattooScene::synchronize |
( |
Serializer & |
s | ) |
|
|
overrideprotectedvirtual |
◆ closestZone()
int Sherlock::Tattoo::TattooScene::closestZone |
( |
const Common::Point & |
pt | ) |
|
|
overrideprotectedvirtual |
Returns the index of the closest zone to a given point.
Implements Sherlock::Scene.
◆ getScaleVal()
int Sherlock::Tattoo::TattooScene::getScaleVal |
( |
const Point32 & |
pt | ) |
|
Returns the scale value for the passed co-ordinates. This is taken from the scene's scale zones, interpolating inbetween the top and bottom values of the zones as needed
◆ freeScene()
void Sherlock::Tattoo::TattooScene::freeScene |
( |
| ) |
|
|
overridevirtual |
Fres all the graphics and other dynamically allocated data for the scene
Reimplemented from Sherlock::Scene.
◆ doBgAnim()
void Sherlock::Tattoo::TattooScene::doBgAnim |
( |
| ) |
|
|
overridevirtual |
◆ updateBackground()
void Sherlock::Tattoo::TattooScene::updateBackground |
( |
| ) |
|
|
overridevirtual |
Update the screen back buffer with all of the scene objects which need to be drawn
Reimplemented from Sherlock::Scene.
◆ startCAnim()
int Sherlock::Tattoo::TattooScene::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::Tattoo::TattooScene::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: