• Fichier: Player.h
  • Path: /dungeon_ascii/DungeonASCII/Player.h
  • File size: 624 bytes
  • MIME-type: text/x-c++
  • Charset: utf-8
 
Retour
#ifndef _PLAYER_CLASS_H_INCLUDED
#define _PLAYER_CLASS_H_INCLUDED

#include <iostream>
#include <string>
#include <vector>
#include <fstream>

#include "Vector2.h"
#include "Sector.h"

class Sector;
class Player
{
	private:
	std::string m_name;
	Vector2 m_coordinates;

	int m_hp;

	public:
	Player(std::string, int, int, int = 4);

	void move(int, int, Sector*);

	std::string getName();
	Vector2* getCoordinates();
	int getHP();

	void setName(std::string);
	void setHP(int);

	void doDamage(int pHp);
	void doHeal(int pHp);
	
	void setCoordinates(int, int);

	~Player();
};

#endif