#ifndef __PLAYER_H_INCLUDED__
#define __PLAYER_H_INCLUDED__
#include <string>
usingnamespace std;
class Player
{
Player();
Player(string, int, int, int, int, int);
~Player();
string Name;
int Health;
int Mana;
int Exp;
int ExpCap;
int Level;
public:
int getHealth();
int getMana();
int getExp();
int getLevel();
void setHealth(int hp);
void setMana(int mp);
void setExp(int xp);
void setLevel(int lvl);
};
#endif __PLAYER_H_INCLUDED__
#include "Player.h"
Player::Player()
{
}
Player::Player(string NAME, int HP, int MP, int XP, int XPCAP, int LVL)
{
Name = NAME;
Health = HP;
Mana = MP;
Exp = XP;
ExpCap = XPCAP;
Level = LVL;
}
Player::~Player()
{
}
I cut a lot of the code out because it created the post way to long. I've tried a lot of different thing to try and make it work so it may look more wrong now than it did :(
am not sure but i think your player default constructor is a private member of your class player, try make it public though i have never used private constructors ,so i might not be sure if they work.
Alright I fixed the Problem.. I was creating a private default constructor and also trying to create a object in a Global Scope(I should have been trying this in a function) like my Game::Run()