Bullets now have derived types.

This commit is contained in:
2023-06-30 15:44:41 -07:00
parent 22729c3928
commit 1a441914ca
11 changed files with 89 additions and 43 deletions
+14
View File
@@ -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;
};