22 #ifndef STARK_VISUAL_EXPLODING_IMAGE_H 23 #define STARK_VISUAL_EXPLODING_IMAGE_H 25 #include "engines/stark/visual/visual.h" 27 #include "common/array.h" 28 #include "common/rect.h" 30 #include "graphics/pixelformat.h" 32 #include "math/vector2d.h" 42 class SurfaceRenderer;
53 static const VisualType TYPE = Visual::kExplodingImage;
59 void initFromSurface(
const Graphics::Surface *surface, uint originalWidth, uint originalHeight);
65 struct ExplosionUnit {
68 void setPosition(
int x,
int y);
74 Math::Vector2d _position;
75 Math::Vector2d _speed;
76 Math::Vector2d _center;
79 int _stillImageTimeRemaining;
80 int _explosionFastAccelerationTimeRemaining;
98 #endif // STARK_VISUAL_EXPLODING_IMAGE_H
Definition: surfacerenderer.h:36
Graphics::Surface * scale(const Graphics::Surface &srcImage, int xSize, int ySize)
Definition: formatinfo.h:28
Definition: explodingimage.h:51