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

Wintermute::BaseRegion Class Reference

#include <base_region.h>

Inheritance diagram for Wintermute::BaseRegion:
Collaboration diagram for Wintermute::BaseRegion:

List of all members.

Public Member Functions

void cleanup ()
bool mimic (BaseRegion *region, float scale=100.0f, int x=0, int y=0)
bool getBoundingRect (Rect32 *rect)
bool ptInPolygon (int32 x, int32 y)
 BaseRegion (BaseGame *inGame)
 ~BaseRegion () override
bool pointInRegion (int x, int y)
bool createRegion ()
bool loadFile (const char *filename)
bool loadBuffer (char *buffer, bool complete=true)
bool saveAsText (BaseDynamicBuffer *buffer, int indent) override
virtual bool saveAsText (BaseDynamicBuffer *buffer, int indent, const char *nameOverride)
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 Attributes

bool _active
int32 _editorSelectedPoint
Rect32 _rect
BaseArray< BasePoint * > _points

Private Attributes

float _lastMimicScale
int32 _lastMimicX
int32 _lastMimicY

Detailed Description

Definition at line 37 of file base_region.h.


Constructor & Destructor Documentation

Wintermute::BaseRegion::BaseRegion ( BaseGame inGame  ) 

Definition at line 45 of file base_region.cpp.

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

Definition at line 56 of file base_region.cpp.


Member Function Documentation

void Wintermute::BaseRegion::cleanup (  ) 

Reimplemented from Wintermute::BaseObject.

Definition at line 62 of file base_region.cpp.

bool Wintermute::BaseRegion::createRegion (  ) 

Definition at line 74 of file base_region.cpp.

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

Reimplemented from Wintermute::BaseScriptable.

Definition at line 538 of file base_region.cpp.

bool Wintermute::BaseRegion::getBoundingRect ( Rect32 rect  ) 

Definition at line 495 of file base_region.cpp.

TOKEN_DEF_START TOKEN_DEF_END bool Wintermute::BaseRegion::loadBuffer ( char *  buffer,
bool  complete = true 
)

Reimplemented in Wintermute::AdRegion.

Definition at line 138 of file base_region.cpp.

bool Wintermute::BaseRegion::loadFile ( const char *  filename  ) 

Reimplemented in Wintermute::AdRegion.

Definition at line 104 of file base_region.cpp.

bool Wintermute::BaseRegion::mimic ( BaseRegion region,
float  scale = 100.0f,
int  x = 0,
int  y = 0 
)

Definition at line 515 of file base_region.cpp.

bool Wintermute::BaseRegion::pointInRegion ( int  x,
int  y 
)

Definition at line 80 of file base_region.cpp.

bool Wintermute::BaseRegion::ptInPolygon ( int32  x,
int32  y 
)

Definition at line 452 of file base_region.cpp.

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

Reimplemented from Wintermute::BaseObject.

Reimplemented in Wintermute::AdRegion.

Definition at line 54 of file base_region.h.

bool Wintermute::BaseRegion::saveAsText ( BaseDynamicBuffer buffer,
int  indent,
const char *  nameOverride 
) [virtual]

Definition at line 401 of file base_region.cpp.

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

Reimplemented from Wintermute::BaseObject.

Reimplemented in Wintermute::AdRegion.

Definition at line 225 of file base_region.cpp.

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

Reimplemented from Wintermute::BaseObject.

Reimplemented in Wintermute::AdRegion.

Definition at line 333 of file base_region.cpp.

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

Reimplemented from Wintermute::BaseObject.

Reimplemented in Wintermute::AdRegion.

Definition at line 373 of file base_region.cpp.

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

Reimplemented from Wintermute::BaseObject.

Reimplemented in Wintermute::AdRegion.

Definition at line 395 of file base_region.cpp.


Member Data Documentation

Definition at line 44 of file base_region.h.

Definition at line 65 of file base_region.h.

Definition at line 66 of file base_region.h.

Definition at line 67 of file base_region.h.

Reimplemented from Wintermute::BaseObject.

Definition at line 52 of file base_region.h.


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


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