-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlayer.h
25 lines (24 loc) · 848 Bytes
/
Player.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once
//#include <iostream>
#include "Entity.h"
#include "Equipment.h"
#include "Constants.h"
class Player: public Entity
{
public:
//Player();
Player(std::string uName, float uHealth, float uMovementSpeed, float uAttackSpeed);
void SetPlayerAffectingBlock(TILE_TYPE gvnTile);
sf::Time GetPlayerElapsedTime();
sf::Time RestartPlayerTimer(); //restarting clock returns some value, might be usefull
TILE_TYPE ReturnPlayerAffectingBlock() const;
void MoveSprite(sf::Vector2f entityMoveBy);
sf::Sprite ReturnSprite();
void ThrowPlayerAttack(bool _isShootingUp, bool _isShootingDown, bool _isShootingRight, bool _isShootingLeft, ProjectileContainer &gvnContainter);
private:
float playerMaxHealth;
TILE_TYPE playerAffectingBlock;
sf::Clock playerTimer;
sf::Sprite entitySprite;
sf::Texture entityTexture;
};