ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <ad_scene.h>

Inheritance diagram for Wintermute::AdScene:
Collaboration diagram for Wintermute::AdScene:

List of all members.

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 ()
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)
 ~AdScene () override
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

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

Private Member Functions

bool persistState (bool saving=true)
void pfAddWaypointGroup (AdWaypointGroup *Wpt, BaseObject *requester=nullptr)

Private Attributes

bool _pfReady
BasePoint_pfTarget
AdPath_pfTargetPath
BaseObject_pfRequester
BaseArray< AdPathPoint * > _pfPath
int32 _offsetTop
int32 _offsetLeft

Detailed Description

Definition at line 50 of file ad_scene.h.


Constructor & Destructor Documentation

Wintermute::AdScene::AdScene ( BaseGame inGame  ) 

Definition at line 76 of file ad_scene.cpp.

Wintermute::AdScene::~AdScene (  )  [override]

Definition at line 83 of file ad_scene.cpp.


Member Function Documentation

bool Wintermute::AdScene::addObject ( AdObject Object  ) 

Definition at line 2695 of file ad_scene.cpp.

bool Wintermute::AdScene::afterLoad (  ) 

Definition at line 2988 of file ad_scene.cpp.

void Wintermute::AdScene::cleanup (  ) 

Reimplemented from Wintermute::BaseObject.

Definition at line 165 of file ad_scene.cpp.

bool Wintermute::AdScene::compareObjs ( const AdObject obj1,
const AdObject obj2 
) [static]

Definition at line 1402 of file ad_scene.cpp.

bool Wintermute::AdScene::correctTargetPoint ( int32  startX,
int32  startY,
int32 x,
int32 y,
bool  checkFreeObjects = false,
BaseObject requester = nullptr 
)

Definition at line 3048 of file ad_scene.cpp.

bool Wintermute::AdScene::correctTargetPoint2 ( int32  startX,
int32  startY,
int32 targetX,
int32 targetY,
bool  checkFreeObjects,
BaseObject requester 
)

Definition at line 3002 of file ad_scene.cpp.

Common::String Wintermute::AdScene::debuggerToString (  )  const [override, virtual]

Reimplemented from Wintermute::BaseScriptable.

Definition at line 3645 of file ad_scene.cpp.

bool Wintermute::AdScene::display (  )  [override, virtual]

Reimplemented from Wintermute::BaseObject.

Definition at line 1265 of file ad_scene.cpp.

bool Wintermute::AdScene::displayRegionContent ( AdRegion region = nullptr,
bool  display3DOnly = false 
)

Definition at line 1327 of file ad_scene.cpp.

bool Wintermute::AdScene::displayRegionContentOld ( AdRegion region = nullptr  ) 

Definition at line 1411 of file ad_scene.cpp.

uint32 Wintermute::AdScene::getAlphaAt ( int  x,
int  y,
bool  colorCheck = false 
)

Definition at line 336 of file ad_scene.cpp.

BaseObject * Wintermute::AdScene::getNextAccessObject ( BaseObject currObject  ) 

Definition at line 3481 of file ad_scene.cpp.

BaseObject * Wintermute::AdScene::getNodeByName ( const char *  name  ) 

Definition at line 3257 of file ad_scene.cpp.

int Wintermute::AdScene::getOffsetLeft (  ) 

Definition at line 3221 of file ad_scene.cpp.

int Wintermute::AdScene::getOffsetTop (  ) 

Definition at line 3230 of file ad_scene.cpp.

bool Wintermute::AdScene::getPath ( const BasePoint source,
const BasePoint target,
AdPath path,
BaseObject requester = nullptr 
)

Definition at line 220 of file ad_scene.cpp.

int Wintermute::AdScene::getPointsDist ( const BasePoint p1,
const BasePoint p2,
BaseObject requester = nullptr 
)

Definition at line 451 of file ad_scene.cpp.

BaseObject * Wintermute::AdScene::getPrevAccessObject ( BaseObject currObject  ) 

Definition at line 3505 of file ad_scene.cpp.

bool Wintermute::AdScene::getRegionObjects ( AdRegion region,
BaseArray< AdObject * > &  objects,
bool  interactiveOnly 
)

Definition at line 3596 of file ad_scene.cpp.

bool Wintermute::AdScene::getRegionsAt ( int  x,
int  y,
AdRegion **  regionList,
int  numRegions 
)

Definition at line 3452 of file ad_scene.cpp.

float Wintermute::AdScene::getRotationAt ( int  x,
int  y 
)

Definition at line 3395 of file ad_scene.cpp.

float Wintermute::AdScene::getScaleAt ( int  y  ) 

Definition at line 2873 of file ad_scene.cpp.

bool Wintermute::AdScene::getSceneObjects ( BaseArray< AdObject * > &  objects,
bool  interactiveOnly 
)

Definition at line 3530 of file ad_scene.cpp.

bool Wintermute::AdScene::getViewportOffset ( int32 offsetX = nullptr,
int32 offsetY = nullptr 
)

Definition at line 3163 of file ad_scene.cpp.

bool Wintermute::AdScene::getViewportSize ( int32 width = nullptr,
int32 height = nullptr 
)

Definition at line 3192 of file ad_scene.cpp.

float Wintermute::AdScene::getZoomAt ( int  x,
int  y 
)

Definition at line 311 of file ad_scene.cpp.

bool Wintermute::AdScene::handleItemAssociations ( const char *  itemName,
bool  show 
)

Definition at line 3424 of file ad_scene.cpp.

bool Wintermute::AdScene::initLoop (  ) 

Definition at line 545 of file ad_scene.cpp.

bool Wintermute::AdScene::isBlockedAt ( int  x,
int  y,
bool  checkFreeObjects = false,
BaseObject requester = nullptr 
)

Definition at line 364 of file ad_scene.cpp.

bool Wintermute::AdScene::isWalkableAt ( int  x,
int  y,
bool  checkFreeObjects = false,
BaseObject requester = nullptr 
)

Definition at line 411 of file ad_scene.cpp.

bool Wintermute::AdScene::loadBuffer ( char *  buffer,
bool  complete = true 
)
bool Wintermute::AdScene::loadFile ( const char *  filename  ) 

Definition at line 573 of file ad_scene.cpp.

bool Wintermute::AdScene::loadState (  ) 

Definition at line 3307 of file ad_scene.cpp.

void Wintermute::AdScene::pathFinderStep (  ) 

Definition at line 500 of file ad_scene.cpp.

bool Wintermute::AdScene::persistState ( bool  saving = true  )  [private]

Definition at line 3313 of file ad_scene.cpp.

void Wintermute::AdScene::pfAddWaypointGroup ( AdWaypointGroup Wpt,
BaseObject requester = nullptr 
) [private]

Definition at line 294 of file ad_scene.cpp.

void Wintermute::AdScene::pfPointsAdd ( int  x,
int  y,
int  distance 
)

Definition at line 3147 of file ad_scene.cpp.

void Wintermute::AdScene::pfPointsStart (  ) 

Definition at line 3141 of file ad_scene.cpp.

bool Wintermute::AdScene::pointInViewport ( int  x,
int  y 
)

Definition at line 3239 of file ad_scene.cpp.

bool Wintermute::AdScene::removeObject ( AdObject Object  ) 

Definition at line 2702 of file ad_scene.cpp.

bool Wintermute::AdScene::restoreDeviceObjects (  )  [override, virtual]

Reimplemented from Wintermute::BaseObject.

Definition at line 3475 of file ad_scene.cpp.

bool Wintermute::AdScene::saveAsText ( BaseDynamicBuffer buffer,
int  indent 
) [override, virtual]

Reimplemented from Wintermute::BaseObject.

Definition at line 2714 of file ad_scene.cpp.

bool Wintermute::AdScene::saveState (  ) 

Definition at line 3301 of file ad_scene.cpp.

bool Wintermute::AdScene::scCallMethod ( ScScript script,
ScStack stack,
ScStack thisStack,
const char *  name 
) [override, virtual]

Reimplemented from Wintermute::BaseObject.

Definition at line 1531 of file ad_scene.cpp.

ScValue * Wintermute::AdScene::scGetProperty ( const Common::String name  )  [override, virtual]

Reimplemented from Wintermute::BaseObject.

Definition at line 2295 of file ad_scene.cpp.

void Wintermute::AdScene::scrollTo ( int  offsetX,
int  offsetY 
)

Definition at line 1468 of file ad_scene.cpp.

void Wintermute::AdScene::scrollToObject ( BaseObject object  ) 

Definition at line 1497 of file ad_scene.cpp.

bool Wintermute::AdScene::scSetProperty ( const char *  name,
ScValue value 
) [override, virtual]

Reimplemented from Wintermute::BaseObject.

Definition at line 2536 of file ad_scene.cpp.

const char * Wintermute::AdScene::scToString (  )  [override, virtual]

Reimplemented from Wintermute::BaseObject.

Definition at line 2689 of file ad_scene.cpp.

void Wintermute::AdScene::setDefaults (  ) 

Definition at line 92 of file ad_scene.cpp.

void Wintermute::AdScene::setOffset ( int  offsetLeft,
int  offsetTop 
)

Definition at line 3250 of file ad_scene.cpp.

void Wintermute::AdScene::skipTo ( int  offsetX,
int  offsetY 
)

Definition at line 1513 of file ad_scene.cpp.

void Wintermute::AdScene::skipToObject ( BaseObject object  ) 

Definition at line 1505 of file ad_scene.cpp.

bool Wintermute::AdScene::sortRotLevels (  ) 

Definition at line 2849 of file ad_scene.cpp.

bool Wintermute::AdScene::sortScaleLevels (  ) 

Definition at line 2825 of file ad_scene.cpp.

bool Wintermute::AdScene::traverseNodes ( bool  update = false  ) 

Definition at line 1029 of file ad_scene.cpp.

bool Wintermute::AdScene::update (  )  [override, virtual]

Reimplemented from Wintermute::BaseObject.

Definition at line 1463 of file ad_scene.cpp.

bool Wintermute::AdScene::updateFreeObjects (  ) 

Definition at line 1270 of file ad_scene.cpp.


Member Data Documentation

Definition at line 118 of file ad_scene.h.

Definition at line 170 of file ad_scene.h.

Definition at line 171 of file ad_scene.h.

Definition at line 172 of file ad_scene.h.

Definition at line 169 of file ad_scene.h.

Definition at line 173 of file ad_scene.h.

Definition at line 91 of file ad_scene.h.

Definition at line 151 of file ad_scene.h.

Definition at line 95 of file ad_scene.h.

Definition at line 136 of file ad_scene.h.

Definition at line 197 of file ad_scene.h.

Definition at line 196 of file ad_scene.h.

Definition at line 110 of file ad_scene.h.

Definition at line 81 of file ad_scene.h.

Definition at line 194 of file ad_scene.h.

Definition at line 190 of file ad_scene.h.

Definition at line 193 of file ad_scene.h.

Definition at line 191 of file ad_scene.h.

Definition at line 192 of file ad_scene.h.

Definition at line 150 of file ad_scene.h.


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


Generated on Sat Sep 26 2020 05:04:11 for ResidualVM by doxygen 1.7.1
curved edge   curved edge