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

A visual effect for drawing small bubbles moving up on top of the scene. More...

#include <bubbles.h>

Inheritance diagram for Stark::VisualEffectBubbles:
Collaboration diagram for Stark::VisualEffectBubbles:

List of all members.

Classes

struct  Bubble

Public Member Functions

 VisualEffectBubbles (Gfx::Driver *gfx, const Common::Point &size)
 ~VisualEffectBubbles () override
void setParams (const Common::String &params)
 Set the effect's parameters using the string based data format found in the game data files.
void render (const Common::Point &position)
 Draw the effect at the designated position.

Static Public Attributes

static const VisualType TYPE = Visual::kEffectBubbles

Private Types

enum  Kind { kSmall = 1, kLarge = 2, kRandom = 3 }

Private Member Functions

void update ()
void drawBubble (const Bubble &bubble) const
void drawSmallBubble (const Bubble &bubble) const
void drawLargeBubble (const Bubble &bubble) const

Private Attributes

uint _bubbleCount
Kind _kind
int _sourcePositionRatioX
int _maxVerticalSpeed
int _maxHorizontalSpeed
byte _mainColorR
byte _mainColorG
byte _mainColorB
Common::Point _sourcePosition
uint32 _mainColor
uint32 _darkColor
Common::Array< Bubble_bubbles

Detailed Description

A visual effect for drawing small bubbles moving up on top of the scene.

Definition at line 42 of file bubbles.h.


Member Enumeration Documentation

Enumerator:
kSmall 
kLarge 
kRandom 

Definition at line 57 of file bubbles.h.


Constructor & Destructor Documentation

Stark::VisualEffectBubbles::VisualEffectBubbles ( Gfx::Driver gfx,
const Common::Point size 
) [explicit]

Definition at line 40 of file bubbles.cpp.

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

Definition at line 54 of file bubbles.cpp.


Member Function Documentation

void Stark::VisualEffectBubbles::drawBubble ( const Bubble bubble  )  const [private]

Definition at line 172 of file bubbles.cpp.

void Stark::VisualEffectBubbles::drawLargeBubble ( const Bubble bubble  )  const [private]

Definition at line 194 of file bubbles.cpp.

void Stark::VisualEffectBubbles::drawSmallBubble ( const Bubble bubble  )  const [private]

Definition at line 184 of file bubbles.cpp.

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

Draw the effect at the designated position.

Definition at line 57 of file bubbles.cpp.

void Stark::VisualEffectBubbles::setParams ( const Common::String params  ) 

Set the effect's parameters using the string based data format found in the game data files.

Definition at line 78 of file bubbles.cpp.

void Stark::VisualEffectBubbles::update (  )  [private]

Definition at line 150 of file bubbles.cpp.


Member Data Documentation

Definition at line 69 of file bubbles.h.

Definition at line 82 of file bubbles.h.

Definition at line 81 of file bubbles.h.

Definition at line 70 of file bubbles.h.

Definition at line 80 of file bubbles.h.

Definition at line 76 of file bubbles.h.

Definition at line 75 of file bubbles.h.

Definition at line 74 of file bubbles.h.

Definition at line 73 of file bubbles.h.

Definition at line 72 of file bubbles.h.

Definition at line 71 of file bubbles.h.

const VisualType Stark::VisualEffectBubbles::TYPE = Visual::kEffectBubbles [static]

Definition at line 44 of file bubbles.h.


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


Generated on Sat Jan 12 2019 05:05:13 for ResidualVM by doxygen 1.7.1
curved edge   curved edge