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

A visual effect for drawing a group of fish swimming around on top of the scene. More...

#include <fish.h>

Inheritance diagram for Stark::VisualEffectFish:
Collaboration diagram for Stark::VisualEffectFish:

List of all members.

Classes

struct  Fish
struct  Frame

Public Member Functions

 VisualEffectFish (Gfx::Driver *gfx, const Common::Point &size)
 ~VisualEffectFish () 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::kEffectFish

Private Member Functions

void update ()
void drawFish (const Fish &fish)

Private Attributes

uint _fishCount
int _fishPathWidthRatio
int _fishPathHeightRatio
int _fishPathWidth
int _fishPathHeight
int _masterPathWidth
int _masterPathHeight
byte _mainColorR
byte _mainColorG
byte _mainColorB
uint32 _mainColor
uint32 _otherColor
uint _numFrames
uint _maxRadius
uint32 _currentFrame
Common::Array< Frame_frames
Common::Array< Fish_fishList
Fish _masterPath

Detailed Description

A visual effect for drawing a group of fish swimming around on top of the scene.

Definition at line 42 of file fish.h.


Constructor & Destructor Documentation

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

Definition at line 40 of file fish.cpp.

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

Definition at line 59 of file fish.cpp.


Member Function Documentation

void Stark::VisualEffectFish::drawFish ( const Fish fish  )  [private]

Definition at line 225 of file fish.cpp.

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

Draw the effect at the designated position.

Definition at line 62 of file fish.cpp.

void Stark::VisualEffectFish::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 83 of file fish.cpp.

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

Definition at line 176 of file fish.cpp.


Member Data Documentation

Definition at line 90 of file fish.h.

Definition at line 74 of file fish.h.

Definition at line 92 of file fish.h.

Definition at line 78 of file fish.h.

Definition at line 76 of file fish.h.

Definition at line 77 of file fish.h.

Definition at line 75 of file fish.h.

Definition at line 91 of file fish.h.

Definition at line 84 of file fish.h.

Definition at line 83 of file fish.h.

Definition at line 82 of file fish.h.

Definition at line 81 of file fish.h.

Definition at line 93 of file fish.h.

Definition at line 80 of file fish.h.

Definition at line 79 of file fish.h.

Definition at line 87 of file fish.h.

Definition at line 86 of file fish.h.

Definition at line 85 of file fish.h.

const VisualType Stark::VisualEffectFish::TYPE = Visual::kEffectFish [static]

Definition at line 44 of file fish.h.


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


Generated on Sat Jan 19 2019 05:07:41 for ResidualVM by doxygen 1.7.1
curved edge   curved edge