def diferent
This commit is contained in:
parent
8276d66807
commit
4152f72a13
3 changed files with 3 additions and 3 deletions
|
@ -14,7 +14,7 @@ public:
|
||||||
void draw(sf::RenderWindow *window);
|
void draw(sf::RenderWindow *window);
|
||||||
bool hitBy(Compas enemy) const;
|
bool hitBy(Compas enemy) const;
|
||||||
Compas getAttack() const;
|
Compas getAttack() const;
|
||||||
virtual bool event(sf::Event e) = 0;
|
virtual bool event(sf::Event e, bool def) = 0;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Compas compas;
|
Compas compas;
|
||||||
|
|
|
@ -7,4 +7,4 @@ bool IaEnemy::updateLogic(float deltaTime, sf::RenderWindow *window) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IaEnemy::event(sf::Event e) {return false;}
|
bool IaEnemy::event(sf::Event e, bool def) {return false;}
|
||||||
|
|
|
@ -7,7 +7,7 @@ class IaEnemy : public Actor {
|
||||||
public:
|
public:
|
||||||
IaEnemy();
|
IaEnemy();
|
||||||
IaEnemy(int player);
|
IaEnemy(int player);
|
||||||
bool event(sf::Event e) final override;
|
bool event(sf::Event e, bool def) final override;
|
||||||
protected:
|
protected:
|
||||||
bool updateLogic(float deltaTime, sf::RenderWindow *window);
|
bool updateLogic(float deltaTime, sf::RenderWindow *window);
|
||||||
|
|
||||||
|
|
Reference in a new issue