#pragma once #include "olcPixelGameEngine.h" #include "Animation.h" #include "olcUTIL_Animate2D.h" #include "Monster.h" struct Bullet{ vf2d pos; vf2d vel; float radius; int damage; Pixel col; float lifetime=99999; bool hitsMultiple=false; bool rotates=false; bool animated=false; Animate2D::Animationanimation; Animate2D::AnimationState internal_animState; std::maphitList; Bullet(vf2d pos,vf2d vel,float radius,int damage,Pixel col=WHITE); //Initializes a bullet with an animation. Bullet(vf2d pos,vf2d vel,float radius,int damage,AnimationState animation,bool hitsMultiple=false,float lifetime=999999,bool rotatesWithAngle=false,Pixel col=WHITE); public: Animate2D::Frame GetFrame(); void Draw(); };