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" 45 int32 _editorBgOffsetX;
46 int32 _editorBgOffsetY;
49 bool _streamedKeepLoaded;
55 bool _editorAllFrames;
56 bool getBoundingRect(
Common::Rect32 *rect,
int x,
int y,
float scaleX = Graphics::kDefaultZoomX,
float scaleY = Graphics::kDefaultZoomY);
59 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);
60 bool getCurrentFrame(
float zoomX = Graphics::kDefaultZoomX,
float zoomY = Graphics::kDefaultZoomY);
69 bool loadBuffer(
char *buffer,
bool compete =
true,
int lifeTime = -1, TSpriteCacheType cacheType = CACHE_ALL);
70 bool loadFile(
const Common::String &filename,
int lifeTime = -1, TSpriteCacheType cacheType = CACHE_ALL);
71 uint32 _lastFrameTime;
72 bool draw(
int x,
int y,
BaseObject *Register =
nullptr,
float zoomX = Graphics::kDefaultZoomX,
float zoomY = Graphics::kDefaultZoomY, uint32 alpha = Graphics::kDefaultRgbaMod);
75 bool addFrame(
const char *filename, uint32 delay = 0,
int hotspotX = 0,
int hotspotY = 0,
Common::Rect32 *rect =
nullptr);
83 bool scSetProperty(
const char *name,
ScValue *value)
override;
85 const char *scToString()
override;
Definition: base_game.h:75
Definition: script_value.h:42
Definition: base_dynamic_buffer.h:35
Definition: script_stack.h:41
Definition: base_surface.h:37
Definition: base_script_holder.h:37
Definition: coll_templ.h:347
Definition: base_sprite.h:40
Definition: base_object.h:49
Definition: achievements_tables.h:27