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.
|
#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();
|
|
}; |