Files
Space-Invader/Inputs.h
T
alexis 9b0a7a78bb feat(laser): created laser object
Created laser object without any collision detection
2024-01-09 12:26:42 +01:00

25 lines
390 B
C++

#pragma once
#include <list>
#include <SFML/Graphics.hpp>
#include <SFML/Main.hpp>
#include "Player.h";
#include "Laser.h";
using namespace std;
using namespace sf;
class Inputs
{
public:
Inputs(Player& player, vector<RectangleShape>& lasers) : _player(player), _lasers(lasers) {};
void HandleInputs();
private:
Player& _player;
Clock _clock;
vector<RectangleShape>& _lasers;
};