Simple 2D RPG made in C++ and SFML
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
596 B

#ifndef PLAYER_H
#define PLAYER_H
#include <iostream>
#include <SFML/Graphics.hpp>
#include "camera.h"
#include "entitymanager.h"
#include "inputmanager.h"
class Player : public Entity
{
public:
Player(EntityManager* entityManager, Camera* camera, float x = 0, float y = 0);
void Update(sf::RenderWindow *window, InputManager inputManager);
float SetSpeed();
int GetHealth();
int GetMaxHealth();
~Player();
private:
EntityManager* entityManager;
Camera* camera;
int health;
int maxHealth;
float speed;
//float direction;
};
#endif // PLAYER_H