GameManager.cpp

Code:
#include GameManager.h

GAMEMANAGER::GAMEMANANGER()
{
      SetMoney(200);
      SetLives(3);
      SetAttack(0);
      SetDefense(0);
      SetBattle(0);
      SetShop(0);

}

void GAMEMANAGER::SetShopBattle(std::string newShopBattle)
{
     ShopBattle = newShopBattle;
}

void GAMEMANAGER::SetMoney(int newmoney)
{
     money = newmoney;
     if (money < 0)
          money = 0; // You cant have a negative amount of money ;)
}

void GAMEMANAGER::SetLives(int newlives)
{
     lives = newlives;
}

void GAMEMANAGER::SetAttack(int newattack)
{
     attack = newattack;
}

void GAMEMANAGER::SetDefense(int newdefense)
{
     defense = newdefense;
}

void GAMEMANAGER::SetBattle(int newbattle)
{
     battle = newbattle;
}
// this is all just redundant code...but it should kinda give you an idea how classes are implemented in c++