The open source repository for the action RPG game in development by Sig Productions titled 'Adventures in Lestoria'!
https://forums.lestoria.net
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
480 B
21 lines
480 B
#include "olcPixelGameEngine.h"
|
|
#pragma once
|
|
|
|
struct Emitter{
|
|
float frequency;
|
|
float timer;
|
|
float lastEmit=0;
|
|
virtual ~Emitter()=default;
|
|
Emitter(float frequency,float timer);
|
|
bool Update(float fElapsedTime);
|
|
virtual void Emit()=0;
|
|
};
|
|
|
|
class LightningBoltEmitter:public Emitter{
|
|
vf2d startPos,endPos;
|
|
bool upperLevel;
|
|
void DrawLightningBolt();
|
|
void Emit()override;
|
|
public:
|
|
LightningBoltEmitter(vf2d startPos,vf2d endPos,float frequency,float timer,bool upperLevel);
|
|
}; |