ScummVM API documentation
MADS::Scene Class Reference

Public Member Functions

 Scene (MADSEngine *vm)
 
 ~Scene ()
 
void restrictScene ()
 
void clearVocab ()
 
void addActiveVocab (int vocabId)
 
uint32 getVocabStringsCount () const
 
void clearSequenceList ()
 
void clearMessageList ()
 
void loadSceneLogic ()
 
void loadScene (int sceneId, const Common::Path &prefix, bool palFlag)
 
void loadHotspots ()
 
void loadVocab ()
 
bool getDepthHighBits (const Common::Point &pt)
 
void loop ()
 
void drawElements (ScreenTransition transitionType, bool surfaceFlag)
 
void initPaletteAnimation (Common::Array< PaletteCycle > &palCycles, bool animFlag)
 
void animatePalette ()
 
int loadAnimation (const Common::Path &resName, int trigger=0)
 
Common::String getVocab (int vocabId)
 
void freeCurrentScene ()
 
void changeVariant (int variant)
 
void resetScene ()
 
void removeSprites ()
 
void freeAnimation ()
 
void freeAnimation (int idx)
 
void synchronize (Common::Serializer &s)
 
void setAnimFrame (int id, int val)
 
int getAnimFrame (int id)
 
void setDynamicAnim (int id, int anim_id, int segment)
 
void setCamera (Common::Point pos)
 
void drawToBackground (int spriteId, int frameId, Common::Point pos, int depth, int scale)
 
void deleteSequence (int idx)
 
void loadSpeech (int idx)
 
void playSpeech (int idx)
 
void sceneScale (int yFront, int maxScale, int yBack, int minScale)
 
void animations_tick ()
 

Public Attributes

SceneLogic_sceneLogic
 
MSurface _sceneSurface
 
int _priorSceneId
 
int _nextSceneId
 
int _currentSceneId
 
Common::Array< VerbInit_verbList
 
TextDisplayList _textDisplay
 
SpriteSlots _spriteSlots
 
SpriteSets _sprites
 
DynamicHotspots _dynamicHotspots
 
Common::Array< int > _activeVocabs
 
SequenceList _sequences
 
KernelMessages _kernelMessages
 
Rails _rails
 
Common::String _talkFont
 
int _textSpacing
 
Hotspots _hotspots
 
DirtyAreas _dirtyAreas
 
int _variant
 
SceneInfo_sceneInfo
 
MSurface _backgroundSurface
 
DepthSurface _depthSurface
 
UserInterface _userInterface
 
bool _cyclingActive
 
int _cyclingThreshold
 
int _cyclingDelay
 
int _totalCycleColors
 
Common::Array< uint32 > _cycleTicks
 
Common::Array< PaletteCycle_paletteCycles
 
Common::StringArray _vocabStrings
 
Animation_animationData
 
Animation_animation [10]
 
bool _freeAnimationFlag
 
int _depthStyle
 
int _bandsRange
 
int _scaleRange
 
int _interfaceY
 
int _spritesCount
 
MADSAction _action
 
bool _roomChanged
 
bool _reloadSceneFlag
 
Common::Point _posAdjust
 
uint32 _frameStartTime
 
ScreenMode _mode
 
bool _lookFlag
 
Common::Point _customDest
 
Common::Array< PaletteUsage::UsageEntry_paletteUsageF
 
Common::Array< PaletteUsage::UsageEntry_scenePaletteUsage
 
int _speechReady
 

Protected Attributes

MADSEngine_vm
 

Constructor & Destructor Documentation

◆ Scene()

MADS::Scene::Scene ( MADSEngine vm)

Constructor

◆ ~Scene()

MADS::Scene::~Scene ( )

Destructor

Member Function Documentation

◆ clearVocab()

void MADS::Scene::clearVocab ( )

Clear the vocabulary list

◆ addActiveVocab()

void MADS::Scene::addActiveVocab ( int  vocabId)

Add a given vocab entry to the active list

◆ getVocabStringsCount()

uint32 MADS::Scene::getVocabStringsCount ( ) const

Get the number of entries in the game's vocabulary

◆ clearSequenceList()

void MADS::Scene::clearSequenceList ( )

Clear the sequence list

◆ clearMessageList()

void MADS::Scene::clearMessageList ( )

Clear the message list

◆ loadSceneLogic()

void MADS::Scene::loadSceneLogic ( )

Loads the scene logic for a given scene

◆ loadScene()

void MADS::Scene::loadScene ( int  sceneId,
const Common::Path prefix,
bool  palFlag 
)

Loads the resources associated with the given scene

Parameters
sceneIdScene to load
prefixPrefix to use for retrieving animation data
palFlagFlag for whether to reset the high/lo palette areas

◆ loadHotspots()

void MADS::Scene::loadHotspots ( )

Loads the hotstpots for the scene

◆ loadVocab()

void MADS::Scene::loadVocab ( )

Loads the vocab list

◆ loop()

void MADS::Scene::loop ( )

Main scene loop

◆ drawElements()

void MADS::Scene::drawElements ( ScreenTransition  transitionType,
bool  surfaceFlag 
)

Draw all the elements onto the scene

◆ animatePalette()

void MADS::Scene::animatePalette ( )

Handles cycling palette colors for the scene

◆ loadAnimation()

int MADS::Scene::loadAnimation ( const Common::Path resName,
int  trigger = 0 
)

Load an animation

◆ getVocab()

Common::String MADS::Scene::getVocab ( int  vocabId)
inline

Returns a vocab entry

◆ freeCurrentScene()

void MADS::Scene::freeCurrentScene ( )

Clear the data for the currently loaded scene

◆ changeVariant()

void MADS::Scene::changeVariant ( int  variant)

Set the walk surface for a scene to a different variant

◆ removeSprites()

void MADS::Scene::removeSprites ( )

Removes all the scene specific sprites fromt the sprites list, leaving any player sprites list in place at the start of the list.

◆ freeAnimation() [1/2]

void MADS::Scene::freeAnimation ( )

Frees any currently active animation for the scene

◆ freeAnimation() [2/2]

void MADS::Scene::freeAnimation ( int  idx)

Frees any given active animation for the scene

◆ synchronize()

void MADS::Scene::synchronize ( Common::Serializer s)

Synchronize the game


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