23 lines
483 B
C++
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
|