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/character.hpp
2017-01-21 03:18:55 +01:00

25 lines
526 B
C++

#ifndef CHARACTER_HPP
#define CHARACTER_HPP
#include "commons.hpp"
class Character : public sf::Sprite{
private:
//CONSTS
const double frameTime = 0.2;
const int numFrames = 4;
const std::string spriteFile = "";
//CONSTS
int indexX, indexY, width, height;
int posX, posY;
PlayerState::playerState actualState, previousState;
float timestamp, next;
public:
Character();
void update(float deltaTime);
void setState(PlayerState::playerState state);
};
#endif // CHARACTER_HPP