Skip to content
Permalink
master
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
#pragma once
class Player
{
public:
Player();
void init(int level, int health, int attack, int defense, int experience);
int attack();
//dmg
int dmgTaken(int attack);
//set p
void setPosition(int x, int y);
//get p
void getPosition(int &x, int &y);
//add exp pts
void addExPoints(int experience);
private:
//player stats/properties
int _level;
int _health;
int _attack;
int _defense;
int _experience;
//player position
int _x;
int _y;
};