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.
AdventuresInLestoria/Crawler/Emitter.h

25 lines
538 B

#pragma once
#include "olcPixelGameEngine.h"
struct Emitter{
friend class Crawler;
float frequency;
float timer;
float lastEmit=0;
private:
bool dead=false;
public:
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);
};