Example #1
0
Mob::Mob(){
	setSTR(1);
	setDEF(1);
	setSPD(9);
	setINT(1);
	setStats(1,10,10,10, 1, 1);
	Name = "The Game";
	TTF_Font* font;
	SDL_Color fgColor = {255,255,0};
	SDL_Color fgColor1 = {255,255,255};
	font = TTF_OpenFont("../Fonts/coolvetica.ttf",25);
	enemyText[0] = TTF_RenderText_Blended(font,getName().c_str(),fgColor);
	enemyText[1] = TTF_RenderText_Blended(font,getName().c_str(),fgColor1);
}
Player::Player(int atk,int def,int hp){
	setATK(atk);
	setDEF(def);
	setHP(hp);
	pAlive = true;
}
Player::~Player(){
	setATK(0);
	setDEF(0);
	setHP(0);
	pAlive = false;
}
////////////////////////////////////////////
// Class Player
////////////////////////////////////////////
Player::Player(){
	setATK(0);
	setDEF(0);
	setHP(100);
	pAlive = true;
}