28 #ifndef WINTERMUTE_BASE_SPRITE_H 29 #define WINTERMUTE_BASE_SPRITE_H 32 #include "engines/wintermute/coll_templ.h" 33 #include "engines/wintermute/base/base_script_holder.h" 34 #include "graphics/transform_tools.h" 47 bool getBoundingRect(
Rect32 *rect,
int x,
int y,
float scaleX = Graphics::kDefaultZoomX,
float scaleY = Graphics::kDefaultZoomY);
50 bool display(
int x,
int y,
BaseObject *registerOwner =
nullptr,
float zoomX = Graphics::kDefaultZoomX,
float zoomY = Graphics::kDefaultZoomY, uint32 alpha = Graphics::kDefaultRgbaMod,
float rotate = Graphics::kDefaultAngle, Graphics::TSpriteBlendMode blendMode = Graphics::BLEND_NORMAL);
51 bool getCurrentFrame(
float zoomX = Graphics::kDefaultZoomX,
float zoomY = Graphics::kDefaultZoomY);
55 bool loadBuffer(
char *buffer,
bool compete =
true,
int lifeTime = -1, TSpriteCacheType cacheType = CACHE_ALL);
56 bool loadFile(
const Common::String &filename,
int lifeTime = -1, TSpriteCacheType cacheType = CACHE_ALL);
57 bool draw(
int x,
int y,
BaseObject *Register =
nullptr,
float zoomX = Graphics::kDefaultZoomX,
float zoomY = Graphics::kDefaultZoomY, uint32 alpha = Graphics::kDefaultRgbaMod);
60 bool addFrame(
const char *filename, uint32 delay = 0,
int hotspotX = 0,
int hotspotY = 0,
Rect32 *rect =
nullptr);
68 bool scSetProperty(
const char *name,
ScValue *value)
override;
70 const char *scToString()
override;
76 bool _editorAllFrames;
78 int32 _editorBgOffsetX;
79 int32 _editorBgOffsetY;
84 uint32 _lastFrameTime;
88 bool _streamedKeepLoaded;
Definition: base_game.h:76
Definition: script_value.h:42
Definition: base_dynamic_buffer.h:35
Definition: script_stack.h:41
Definition: base_surface.h:38
Definition: base_script_holder.h:37
Definition: coll_templ.h:63
Definition: base_sprite.h:40
Definition: base_object.h:49
Definition: achievements_tables.h:27