28 #ifndef WINTERMUTE_BASE_REGION_H 29 #define WINTERMUTE_BASE_REGION_H 31 #include "engines/wintermute/base/base_point.h" 32 #include "engines/wintermute/base/base_object.h" 39 bool mimic(
BaseRegion *region,
float scale = 100.0f,
int x = 0,
int y = 0);
40 bool getBoundingRect(
Rect32 *rect);
41 bool ptInPolygon(int32 x, int32 y);
44 int32 _editorSelectedPoint;
47 bool pointInRegion(
int x,
int y);
49 bool loadFile(
const char *filename);
50 bool loadBuffer(
char *buffer,
bool complete =
true);
53 bool saveAsText(
BaseDynamicBuffer *buffer,
int indent)
override {
return saveAsText(buffer, indent,
nullptr); }
54 virtual bool saveAsText(
BaseDynamicBuffer *buffer,
int indent,
const char *nameOverride);
58 bool scSetProperty(
const char *name,
ScValue *value)
override;
60 const char *scToString()
override;
64 float _lastMimicScale;
Definition: base_game.h:75
Definition: script_value.h:42
Definition: base_dynamic_buffer.h:35
Graphics::Surface * scale(const Graphics::Surface &srcImage, int xSize, int ySize)
Definition: base_region.h:36
Definition: script_stack.h:41
Definition: coll_templ.h:63
Definition: base_object.h:57
Definition: achievements_tables.h:27