This repository has been archived on 2022-12-14. You can view files and clone it, but cannot push or open issues or pull requests.
WaveGGJ17/VaporWaveWars/actor.hpp
2017-01-21 23:44:22 +01:00

27 lines
564 B
C++

#ifndef ENEMY_H
#define ENEMY_H
#include "commons.hpp"
#include "character.hpp"
#include "compas.hpp"
class Actor
{
public:
Actor();
Actor(int num);
bool update(float deltaTime, sf::RenderWindow *window);
void draw(sf::RenderWindow *window);
bool hitBy(Compas enemy);
Compas getAttack() const;
virtual bool event(sf::Event e) = 0;
protected:
Compas compas;
PlayerState::playerState animate;
virtual bool updateLogic(float deltaTime, sf::RenderWindow *window) = 0;
private:
Character *character;
};
#endif // ENEMY_H