Bullets now have derived types.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
#include "Bullet.h"
|
||||
|
||||
struct GenericBullet:public Bullet{
|
||||
GenericBullet(vf2d pos,vf2d vel,float radius,int damage,Pixel col=WHITE);
|
||||
GenericBullet(vf2d pos,vf2d vel,float radius,int damage,AnimationState animation,bool hitsMultiple=false,float lifetime=INFINITE,bool rotatesWithAngle=false,Pixel col=WHITE);
|
||||
void Update(float fElapsedTime)override;
|
||||
};
|
||||
|
||||
struct EnergyBolt:public Bullet{
|
||||
float lastParticleSpawn=0;
|
||||
EnergyBolt(vf2d pos,vf2d vel,float radius,int damage,Pixel col=WHITE);
|
||||
void Update(float fElapsedTime)override;
|
||||
};
|
||||
Reference in New Issue
Block a user