#pragma once #include "Rect.h" #include "olcPixelGameEngine.h" class Enemy{ olc::vf2d pos; Rect*sprite; int health; public: Enemy(olc::vi2d pos,Rect*sprite,int health=1); olc::vf2d GetPos(); olc::vi2d GetSprPos(); olc::vi2d GetSprSize(); void Hurt(int damage=1); bool IsAlive(); void Move(olc::vi2d moveAmt); olc::Pixel GetColor(); };