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.

Classes

struct  ExplosionUnit

Public Member Functions

 VisualExplodingImage (Gfx::Driver *gfx)
 ~VisualExplodingImage () override
void initFromSurface (const Graphics::Surface *surface)
 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

Gfx::Driver_gfx
Gfx::SurfaceRenderer_surfaceRenderer
Gfx::Texture_texture
Graphics::Surface_surface
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 46 of file explodingimage.cpp.


Member Function Documentation

void Stark::VisualExplodingImage::initFromSurface ( const Graphics::Surface surface  ) 

Prepare exploding the specified image.

Definition at line 55 of file explodingimage.cpp.

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

Render the image at the specified position.

Definition at line 81 of file explodingimage.cpp.


Member Data Documentation

Definition at line 85 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 Mar 23 2019 05:09:01 for ResidualVM by doxygen 1.7.1
curved edge   curved edge