diff --git a/VaporWaveWars/actor.hpp b/VaporWaveWars/actor.hpp index c850848..3ecb150 100644 --- a/VaporWaveWars/actor.hpp +++ b/VaporWaveWars/actor.hpp @@ -14,7 +14,7 @@ public: void draw(sf::RenderWindow *window); bool hitBy(Compas enemy) const; Compas getAttack() const; - virtual bool event(sf::Event e) = 0; + virtual bool event(sf::Event e, bool def) = 0; protected: Compas compas; diff --git a/VaporWaveWars/iaenemy.cpp b/VaporWaveWars/iaenemy.cpp index 36944f3..d227be4 100644 --- a/VaporWaveWars/iaenemy.cpp +++ b/VaporWaveWars/iaenemy.cpp @@ -7,4 +7,4 @@ bool IaEnemy::updateLogic(float deltaTime, sf::RenderWindow *window) { return true; } -bool IaEnemy::event(sf::Event e) {return false;} +bool IaEnemy::event(sf::Event e, bool def) {return false;} diff --git a/VaporWaveWars/iaenemy.hpp b/VaporWaveWars/iaenemy.hpp index 8b40f3e..8ffff11 100644 --- a/VaporWaveWars/iaenemy.hpp +++ b/VaporWaveWars/iaenemy.hpp @@ -7,7 +7,7 @@ class IaEnemy : public Actor { public: IaEnemy(); IaEnemy(int player); - bool event(sf::Event e) final override; + bool event(sf::Event e, bool def) final override; protected: bool updateLogic(float deltaTime, sf::RenderWindow *window);