ScummVM API documentation
Wintermute::AdScene Class Reference
Inheritance diagram for Wintermute::AdScene:
Wintermute::BaseObject Wintermute::BaseScriptHolder Wintermute::BaseScriptable Wintermute::BaseNamedObject Wintermute::BaseClass

Public Member Functions

BaseObjectgetNextAccessObject (BaseObject *currObject)
 
BaseObjectgetPrevAccessObject (BaseObject *currObject)
 
bool getSceneObjects (BaseArray< AdObject *> &objects, bool interactiveOnly)
 
bool getRegionObjects (AdRegion *region, BaseArray< AdObject *> &objects, bool interactiveOnly)
 
bool afterLoad ()
 
void setMaxShadowType (TShadowType shadowType)
 
bool getRegionsAt (int x, int y, AdRegion **regionList, int numRegions)
 
bool handleItemAssociations (const char *itemName, bool show)
 
float getRotationAt (int x, int y)
 
bool loadState ()
 
bool saveState ()
 
BaseObjectgetNodeByName (const char *name)
 
void setOffset (int offsetLeft, int offsetTop)
 
bool pointInViewport (int x, int y)
 
int getOffsetTop ()
 
int getOffsetLeft ()
 
bool getViewportSize (int32 *width=nullptr, int32 *height=nullptr)
 
bool getViewportOffset (int32 *offsetX=nullptr, int32 *offsetY=nullptr)
 
void pfPointsAdd (int x, int y, int distance)
 
void pfPointsStart ()
 
bool correctTargetPoint (int32 startX, int32 startY, int32 *x, int32 *y, bool checkFreeObjects=false, BaseObject *requester=nullptr)
 
bool correctTargetPoint2 (int32 startX, int32 startY, int32 *targetX, int32 *targetY, bool checkFreeObjects, BaseObject *requester)
 
bool displayRegionContent (AdRegion *region=nullptr, bool display3DOnly=false)
 
bool displayRegionContentOld (AdRegion *region=nullptr)
 
bool updateFreeObjects ()
 
bool traverseNodes (bool update=false)
 
float getScaleAt (int y)
 
bool sortScaleLevels ()
 
bool sortRotLevels ()
 
bool saveAsText (BaseDynamicBuffer *buffer, int indent) override
 
uint32 getAlphaAt (int x, int y, bool colorCheck=false)
 
void skipTo (int offsetX, int offsetY)
 
void setDefaults ()
 
void cleanup ()
 
void skipToObject (BaseObject *object)
 
void scrollToObject (BaseObject *object)
 
void scrollTo (int offsetX, int offsetY)
 
bool update () override
 
bool display () override
 
bool initLoop ()
 
void pathFinderStep ()
 
bool isBlockedAt (int x, int y, bool checkFreeObjects=false, BaseObject *requester=nullptr)
 
bool isWalkableAt (int x, int y, bool checkFreeObjects=false, BaseObject *requester=nullptr)
 
float getZoomAt (int x, int y)
 
bool getPath (const BasePoint &source, const BasePoint &target, AdPath *path, BaseObject *requester=nullptr)
 
 AdScene (BaseGame *inGame)
 
bool loadFile (const char *filename)
 
bool loadBuffer (char *buffer, bool complete=true)
 
bool addObject (AdObject *Object)
 
bool removeObject (AdObject *Object)
 
bool restoreDeviceObjects () override
 
int getPointsDist (const BasePoint &p1, const BasePoint &p2, BaseObject *requester=nullptr)
 
ScValuescGetProperty (const Common::String &name) override
 
bool scSetProperty (const char *name, ScValue *value) override
 
bool scCallMethod (ScScript *script, ScStack *stack, ScStack *thisStack, const char *name) override
 
const char * scToString () override
 
Common::String debuggerToString () const override
 
- Public Member Functions inherited from Wintermute::BaseObject
virtual bool afterMove ()
 
virtual bool isReady ()
 
virtual bool getExtendedFlag (const char *flagName)
 
virtual bool resetSoundPan ()
 
virtual bool updateSounds ()
 
bool updateOneSound (BaseSound *sound)
 
virtual bool handleMouseWheel (int32 delta)
 
virtual bool handleMouse (TMouseEvent event, TMouseButton button)
 
virtual bool handleKeypress (Common::Event *event, bool printable=false)
 
virtual int32 getHeight ()
 
bool setCursor (const char *filename)
 
bool setActiveCursor (const char *filename)
 
bool cleanup ()
 
const char * getCaption (int caseVal=1)
 
void setCaption (const char *caption, int caseVal=1)
 
virtual bool showCursor ()
 
bool saveAsText (BaseDynamicBuffer *buffer, int indent) override
 
bool listen (BaseScriptHolder *param1, uint32 param2) override
 
 BaseObject (BaseGame *inGame)
 
virtual bool invalidateDeviceObjects ()
 
ScValuescGetProperty (const Common::String &name) override
 
bool scSetProperty (const char *name, ScValue *value) override
 
bool scCallMethod (ScScript *script, ScStack *stack, ScStack *thisStack, const char *name) override
 
const char * scToString () override
 
- Public Member Functions inherited from Wintermute::BaseScriptHolder
 BaseScriptHolder (BaseGame *inGame)
 
ScScriptinvokeMethodThread (const char *methodName) override
 
virtual void makeFreezable (bool freezable)
 
bool canHandleEvent (const char *eventName) const
 
bool canHandleMethod (const char *eventMethod) const override
 
bool cleanup ()
 
bool removeScript (ScScript *script)
 
bool addScript (const char *filename)
 
bool saveAsText (BaseDynamicBuffer *buffer, int indent) override
 
bool applyEvent (const char *eventName, bool unbreakable=false)
 
void setFilename (const char *filename)
 
const char * getFilename ()
 
bool parseProperty (char *buffer, bool complete=true)
 
ScValuescGetProperty (const Common::String &name) override
 
bool scSetProperty (const char *name, ScValue *value) override
 
bool scCallMethod (ScScript *script, ScStack *stack, ScStack *thisStack, const char *name) override
 
const char * scToString () override
 
void scDebuggerDesc (char *buf, int bufSize) override
 
virtual bool sendEvent (const char *eventName)
 
- Public Member Functions inherited from Wintermute::BaseScriptable
 BaseScriptable (BaseGame *inGame, bool noValue=false, bool persistable=true)
 
virtual void * scToMemBuffer ()
 
virtual int scToInt ()
 
virtual double scToFloat ()
 
virtual bool scToBool ()
 
virtual void scSetString (const char *val)
 
virtual void scSetInt (int val)
 
virtual void scSetFloat (double val)
 
virtual void scSetBool (bool val)
 
virtual int scCompare (BaseScriptable *val)
 
- Public Member Functions inherited from Wintermute::BaseNamedObject
 BaseNamedObject (BaseGame *inGame)
 
 BaseNamedObject (TDynamicConstructor, TDynamicConstructor)
 
const char * getName () const
 
void setName (const char *name)
 
- Public Member Functions inherited from Wintermute::BaseClass
bool setEditorProp (const Common::String &propName, const Common::String &propValue)
 
Common::String getEditorProp (const Common::String &propName, const Common::String &initVal=Common::String())
 
 BaseClass (TDynamicConstructor, TDynamicConstructor)
 
bool parseEditorProperty (char *buffer, bool complete=true)
 
 BaseClass (BaseGame *GameOwner)
 
virtual const char * getClassName ()
 
virtual bool persist (BasePersistenceManager *persistMgr)
 

Static Public Member Functions

static bool compareObjs (const AdObject *obj1, const AdObject *obj2)
 

Public Attributes

UIWindow_shieldWindow
 
bool _persistentState
 
bool _persistentStateSprites
 
BaseViewport_viewport
 
BaseFader_fader
 
int32 _pfPointsNum
 
bool _initialized
 
bool _paralaxScrolling
 
bool _autoScroll
 
int32 _targetOffsetTop
 
int32 _targetOffsetLeft
 
int32 _scrollPixelsV
 
uint32 _scrollTimeV
 
uint32 _lastTimeV
 
int32 _scrollPixelsH
 
uint32 _scrollTimeH
 
uint32 _lastTimeH
 
uint32 _pfMaxTime
 
AdLayer_mainLayer
 
BaseArray< AdLayer * > _layers
 
BaseArray< AdObject * > _objects
 
BaseArray< AdWaypointGroup * > _waypointGroups
 
int32 _width
 
int32 _height
 
int32 _editorMarginH
 
int32 _editorMarginV
 
uint32 _editorColFrame
 
uint32 _editorColEntity
 
uint32 _editorColRegion
 
uint32 _editorColBlocked
 
uint32 _editorColWaypoints
 
uint32 _editorColEntitySel
 
uint32 _editorColRegionSel
 
uint32 _editorColBlockedSel
 
uint32 _editorColWaypointsSel
 
uint32 _editorColScale
 
uint32 _editorColDecor
 
uint32 _editorColDecorSel
 
bool _editorShowRegions
 
bool _editorShowBlocked
 
bool _editorShowDecor
 
bool _editorShowEntities
 
bool _editorShowScale
 
BaseArray< AdScaleLevel * > _scaleLevels
 
BaseArray< AdRotLevel * > _rotLevels
 
- Public Attributes inherited from Wintermute::BaseObject
Graphics::TSpriteBlendMode _blendMode
 
float _scale
 
uint32 _alphaColor
 
int32 _sFXVolume
 
bool _editorOnly
 
bool _is3D
 
BaseSprite_cursor
 
bool _sharedCursors
 
BaseSprite_activeCursor
 
bool _movable
 
bool _zoomable
 
bool _shadowable
 
int32 _posY
 
int32 _posX
 
bool _registrable
 
char * _caption [7]
 
bool _saveState
 
bool _nonIntMouseEvents
 
- Public Attributes inherited from Wintermute::BaseScriptHolder
bool _freezable
 
bool _ready
 
BaseArray< ScScript * > _scripts
 
- Public Attributes inherited from Wintermute::BaseScriptable
int32 _refCount
 
ScValue_scValue
 
ScValue_scProp
 
- Public Attributes inherited from Wintermute::BaseNamedObject
char * _name
 
- Public Attributes inherited from Wintermute::BaseClass
bool _persistable
 
BaseGame_gameRef
 

Additional Inherited Members

- Protected Member Functions inherited from Wintermute::BaseObject
bool setSFXTime (uint32 time)
 
bool setSFXVolume (int volume)
 
bool resumeSFX ()
 
bool pauseSFX ()
 
bool stopSFX (bool deleteSound=true)
 
bool playSFX (const char *filename, bool looping=false, bool playNow=true, const char *eventName=nullptr, uint32 loopStart=0)
 
void setSoundEvent (const char *eventName)
 
- Protected Attributes inherited from Wintermute::BaseObject
bool _autoSoundPanning
 
uint32 _sFXStart
 
BaseSound_sFX
 
TSFXType _sFXType
 
float _sFXParam1
 
float _sFXParam2
 
float _sFXParam3
 
float _sFXParam4
 
float _relativeRotate
 
bool _rotateValid
 
float _rotate
 
bool _rotatable
 
float _scaleX
 
float _scaleY
 
float _relativeScale
 
bool _editorSelected
 
bool _editorAlwaysRegister
 
bool _ready
 
Rect32 _rect
 
bool _rectSet
 
int32 _iD
 
char * _soundEvent
 
- Protected Attributes inherited from Wintermute::BaseClass
Common::HashMap< Common::String, Common::String_editorProps
 
Common::HashMap< Common::String, Common::String >::iterator _editorPropsIter
 

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