#pragma once #include "olcPixelGameEngine.h" #include "Enemy.h" class Bullet{ olc::vf2d pos; bool alive=true; public: Bullet(olc::vi2d pos); olc::vf2d GetPos(); void Update(float fElapsedTime); bool CollidesWith(Enemy&enemy); void KillBullet(); bool IsAlive(); };