ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Stark::VisualExplodingImage Class Reference

An image with an animated explosion effect. More...

#include <explodingimage.h>

Inheritance diagram for Stark::VisualExplodingImage:
Collaboration diagram for Stark::VisualExplodingImage:

List of all members.


struct  ExplosionUnit

Public Member Functions

 VisualExplodingImage (Gfx::Driver *gfx)
 ~VisualExplodingImage () override
void initFromSurface (const Graphics::Surface *surface, uint originalWidth, uint originalHeight)
 Prepare exploding the specified image.
void render (const Common::Point &position)
 Render the image at the specified position.

Static Public Attributes

static const VisualType TYPE = Visual::kExplodingImage

Private Attributes

uint _originalWidth
uint _originalHeight
Common::Array< ExplosionUnit_units

Detailed Description

An image with an animated explosion effect.

Used by the top bar when picking up an inventory item

Definition at line 52 of file explodingimage.h.

Constructor & Destructor Documentation

Stark::VisualExplodingImage::VisualExplodingImage ( Gfx::Driver gfx  )  [explicit]

Definition at line 38 of file explodingimage.cpp.

Stark::VisualExplodingImage::~VisualExplodingImage (  )  [override]

Definition at line 48 of file explodingimage.cpp.

Member Function Documentation

void Stark::VisualExplodingImage::initFromSurface ( const Graphics::Surface surface,
uint  originalWidth,
uint  originalHeight 

Prepare exploding the specified image.

Definition at line 57 of file explodingimage.cpp.

void Stark::VisualExplodingImage::render ( const Common::Point position  ) 

Render the image at the specified position.

Definition at line 86 of file explodingimage.cpp.

Member Data Documentation

Definition at line 86 of file explodingimage.h.

const VisualType Stark::VisualExplodingImage::TYPE = Visual::kExplodingImage [static]

Definition at line 54 of file explodingimage.h.

The documentation for this class was generated from the following files:

Generated on Sat May 30 2020 05:03:44 for ResidualVM by doxygen 1.7.1
curved edge   curved edge