Select Git revision
01 IntroKlassen.csproj.AssemblyReference.cache
player.hpp 630 B
#ifndef PLAYER_HPP
#define PLAYER_HPP
#include "PixelBuffer.hpp"
#include "Platform.hpp"
#include "Level.hpp"
#include "Position.hpp"
int constexpr PLAYER_W = 17;
int constexpr PLAYER_H = 11;
class Player : public Entity
{
protected:
int speed=48;
direction dir=direction::BACK;
int animationstep=0;
float timetillreload=0.0f;
float animationtimer=0.0f;
public:
Player(float x, float y);
PixelBuffer const& getSprite() override;
void move(Platform &p, FloatSeconds const & Frametime, Level &level);
void shoot(Level &level);
const PixelBuffer& getLivesSprite();
};
#endif // PLAYER_HPP