Anonymous
public text v1 · immutable/* Author: Laizerox */
/* pelaaja.h on ... */
using namespace std;
#define <string>
//pelaaja luokka tässä määrittellemme ja kutsumme kaikkei roska :)
class Pelaaja
{
private:
string name;
int age;
float money;
bool isSmoker;
bool male;
public:
Pelaaja()
{
name = "";
age = 0;
money = 0;
isSmoker = false;
male = false;
}
Pelaaja(string name, int age, int money, bool isSmoker, bool sex)
{
this->name = name;
this->age = age;
this->money = money;
this->isSmoker = isSmoker;
this->male = male;
}
string TellName()
{
return name;
}
int TellAge()
{
return age;
}
void TellSex()
{
}
void TellSmoker()
{
}
void ChangeName(string name)
{
this->name=name;
}
void SetSmoker()
{
}
};