Files
rpg/src/player.h
T
Riyyi f575d6b487 Add Player class, Camera update, some clean up
@Todo Camera stop following player at screen edges
2015-03-20 01:22:46 +01:00

31 lines
596 B
C++

#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