#pragma once #include "olcPixelGameEngine.h" #include "Rect.h" class Player{ olc::vf2d pos; Rect*sprite; float lastShootTime=0; public: Player(olc::vi2d pos,Rect*sprite); olc::vf2d GetPos(); olc::vi2d GetSprPos(); olc::vi2d GetSprSize(); void Update(float fElapsedTime); bool CanShoot(); void OnShoot(); void Move(olc::vf2d moveAmt); };