/
ParticleEngine.h
46 lines (45 loc) · 989 Bytes
/
ParticleEngine.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#pragma once
#include "Shared.h"
#include "Particle.h"
class CShared;
class Particle;
#define MAX_PARTICLES 25
class ParticleEngine
{
CShared *shared;
Particle *particles[MAX_PARTICLES];
float sin_look[361];
float cos_look[361];
SDL_Rect dst;
int delayForLateSwitch;
int trailCounter; // how often the trail
public:
int STAR;
int SPARKLE;
int CIRCLE;
int BUBBLE;
int STAR_RED;
int STAR_YELLOW;
int STAR_ORANGE;
int initiateAchievementEffect;
int achievementGraphicStage;
int achievementGraphicStageCounter;
int latestAchievement;
public:
ParticleEngine(void);
~ParticleEngine(void);
void Init();
void Render();
void Update();
void InitFireworks();
void InitLeaves(int which);
void InitSnow();
void InitShootingStar(int which);
void InitButterflies(int which);
void InitTrail(int x, int y);
void InitExplosion(int fx, int fy);
void InitMixed();
void LateSwitchEffect(int fx, int fy, int direction);
void LinkShared(CShared *fshared);
void InitGame();
};