feat(laser): created laser object
Created laser object without any collision detection
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
#include <list>
|
||||
#include <SFML/Graphics.hpp>
|
||||
#include <SFML/Main.hpp>
|
||||
#include "Player.h";
|
||||
#include "Laser.h";
|
||||
|
||||
using namespace std;
|
||||
using namespace sf;
|
||||
@@ -9,12 +12,13 @@ using namespace sf;
|
||||
class Inputs
|
||||
{
|
||||
public:
|
||||
Inputs(RenderWindow& window, Player& player) : _window(window), _player(player) {};
|
||||
Inputs(Player& player, vector<RectangleShape>& lasers) : _player(player), _lasers(lasers) {};
|
||||
|
||||
void HandleInputs(Event& event);
|
||||
void HandleInputs();
|
||||
|
||||
private:
|
||||
RenderWindow& _window;
|
||||
Player& _player;
|
||||
Clock _clock;
|
||||
vector<RectangleShape>& _lasers;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user