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

23 lines
483 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();
void setFirerate(unsigned int firerate);
void move(float deltaX, float deltaY);
void moveLeft();
void moveRight();
void moveUp();
void moveDown();
private:
std::chrono::steady_clock::time_point lastShotTime = std::chrono::steady_clock::now();
};
#endif //LOTOSTATEK_PLAYER_H