Skip to content
Permalink
8ac1676b2c
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
35 lines (28 sloc) 489 Bytes
#ifndef PLAYER
#define PLAYER
#include <string>
#include <iostream>
#include "IO.h"
using namespace std;
class Player
{
private:
//Attributes
int level;
string weapon_equipped;
int pos_x;
int pos_y;
string name;
public:
int health;
int attack;
float defense;
//Constructor
Player();
Player(string player_name);
int get_x();
int get_y();
void set_position(int x, int y);
char player_input();
};
#endif