This repository has been archived on 2025-06-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
LotoStatek/headers/Player.h
hamx01 fcabc0534a A little code refactor
+ new bullet texture added
2024-11-16 16:01:01 +01:00

23 lines
537 B
C++

#ifndef LOTOSTATEK_PLAYER_H
#define LOTOSTATEK_PLAYER_H
#include "Actor.h"
class Player : public Actor {
public:
Player(int x, int y, std::string path);
void shoot() override;
void setFirerate(unsigned int firerate);
void move(float deltaX, float deltaY) override;
void moveLeft() override;
void moveRight() override;
void moveUp() override;
void moveDown() override;
private:
std::chrono::steady_clock::time_point lastShotTime = std::chrono::steady_clock::now();
};
#endif //LOTOSTATEK_PLAYER_H