28 #ifndef WINTERMUTE_BASE_SUBFRAME_H 29 #define WINTERMUTE_BASE_SUBFRAME_H 32 #include "engines/wintermute/base/base.h" 33 #include "engines/wintermute/base/base_scriptable.h" 34 #include "graphics/transform_struct.h" 44 bool setSurface(
const Common::String &filename,
bool defaultCK =
true, byte ckRed = 0, byte ckGreen = 0, byte ckBlue = 0,
int lifeTime = -1,
bool keepLoaded =
false);
45 bool setSurfaceSimple();
47 void setDefaultRect();
49 bool saveAsText(
BaseDynamicBuffer *buffer,
int indent)
override {
return saveAsText(buffer, indent,
true); }
54 bool loadBuffer(
char *buffer,
int lifeTime,
bool keepLoaded);
55 bool draw(
int x,
int y,
BaseObject *registerOwner =
nullptr,
float zoomX = 100,
float zoomY = 100,
bool precise =
true, uint32 alpha = 0xFFFFFFFF,
float rotate = 0.0f, Graphics::TSpriteBlendMode blendMode = Graphics::BLEND_NORMAL);
56 bool getBoundingRect(
Rect32 *rect,
int x,
int y,
float scaleX = 100,
float scaleY = 100);
57 const char* getSurfaceFilename();
67 bool _wantsDefaultRect;
69 char *_surfaceFilename;
85 bool scSetProperty(
const char *name,
ScValue *value)
override;
87 const char *scToString()
override;
Definition: base_game.h:76
Definition: script_value.h:42
Definition: base_sub_frame.h:39
Definition: base_dynamic_buffer.h:35
Definition: base_scriptable.h:41
Definition: script_stack.h:41
Definition: base_surface.h:38
Definition: base_object.h:49
Definition: achievements_tables.h:27