ScummVM API documentation
MADS::SceneInfo Class Referenceabstract

#include <scene_data.h>

Inheritance diagram for MADS::SceneInfo:
MADS::Nebular::SceneInfoNebular

Public Member Functions

virtual ~SceneInfo ()
 
void load (int sceneId, int variant, const Common::String &resName, int flags, DepthSurface &depthSurface, BaseSurface &bgSurface)
 
void loadPalette (int sceneId, int artFileNum, const Common::String &resName, int flags, BaseSurface &bgSurface)
 
void loadMadsV1Background (int sceneId, const Common::String &resName, int flags, BaseSurface &bgSurface)
 
void loadMadsV2Background (int sceneId, const Common::String &resName, int flags, BaseSurface &bgSurface)
 
virtual void loadCodes (BaseSurface &depthSurface, int variant)=0
 
virtual void loadCodes (BaseSurface &depthSurface, Common::SeekableReadStream *stream)=0
 

Static Public Member Functions

static SceneInfoinit (MADSEngine *vm)
 

Public Attributes

int _sceneId
 
int _artFileNum
 
int _depthStyle
 
int _width
 
int _height
 
int _yBandsEnd
 
int _yBandsStart
 
int _maxScale
 
int _minScale
 
int _depthList [15]
 
int _field4A
 
int _usageIndex
 
Common::Array< PaletteCycle_paletteCycles
 
WalkNodeList _nodes
 

Protected Member Functions

 SceneInfo (MADSEngine *vm)
 

Protected Attributes

MADSEngine_vm
 

Detailed Description

Handles general data for a given scene

Constructor & Destructor Documentation

◆ SceneInfo()

MADS::SceneInfo::SceneInfo ( MADSEngine vm)
protected

Constructor

◆ ~SceneInfo()

virtual MADS::SceneInfo::~SceneInfo ( )
inlinevirtual

Destructor

Member Function Documentation

◆ init()

static SceneInfo* MADS::SceneInfo::init ( MADSEngine vm)
static

Instantiates the class

◆ load()

void MADS::SceneInfo::load ( int  sceneId,
int  variant,
const Common::String resName,
int  flags,
DepthSurface depthSurface,
BaseSurface bgSurface 
)

loads the data

◆ loadPalette()

void MADS::SceneInfo::loadPalette ( int  sceneId,
int  artFileNum,
const Common::String resName,
int  flags,
BaseSurface bgSurface 
)

Loads the palette for a scene

◆ loadMadsV1Background()

void MADS::SceneInfo::loadMadsV1Background ( int  sceneId,
const Common::String resName,
int  flags,
BaseSurface bgSurface 
)

Loads a V1 game background

◆ loadMadsV2Background()

void MADS::SceneInfo::loadMadsV2Background ( int  sceneId,
const Common::String resName,
int  flags,
BaseSurface bgSurface 
)

Loads a V2 game background

◆ loadCodes() [1/2]

virtual void MADS::SceneInfo::loadCodes ( BaseSurface depthSurface,
int  variant 
)
pure virtual

Loads the given surface with depth information of a given scene

Parameters
depthSurfaceDepth/walk surface
variantVariant number to load

Implemented in MADS::Nebular::SceneInfoNebular.

◆ loadCodes() [2/2]

virtual void MADS::SceneInfo::loadCodes ( BaseSurface depthSurface,
Common::SeekableReadStream stream 
)
pure virtual

Loads the given surface with depth information of a given scene

Parameters
depthSurfaceDepth/walk surface
streamStream to load the data from

Implemented in MADS::Nebular::SceneInfoNebular.


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