16 lines
368 B
C++
16 lines
368 B
C++
#include "actor.hpp"
|
|
|
|
Actor::Actor() {}
|
|
|
|
void Actor::draw(sf::RenderWindow *window) {
|
|
window->draw(character);
|
|
}
|
|
|
|
bool Actor::update(float deltaTime, sf::RenderWindow *window) {
|
|
character.update(deltaTime);
|
|
if (animate) {
|
|
character.setState(PlayerState::attacking);
|
|
animate = false;
|
|
}
|
|
return this->updateLogic(deltaTime, window);
|
|
}
|