Original Post
so you have somthing like this
class player
{
public:
int x;
int y;
int location;
int hp;
int wep;
int armor;
int str;
int ect.;// dot for abbriviation do not include
void attack(the_random_monster);
void attack_Boss(the_boss);
}
player astro;
if(astro.x>15&&astro.y<35&&astro.location = 5)
{
astro.attack_Boss(crazy_man);
}
while((astro.x++||astro.y++||astro.x--||astro.y--)&&!astro.location = 3)
{
ran = rand();
if(rand ==5)
{
astro.attack(rand_monster);
}
}