battle = NULL;
flags = 0;
lastcommand = 0;
+ lastlogin = 0;
setAlive(this);
inventory.reset();
}
inventory.setInventory(&right->inventory);
client = right->client;
lastcommand = right->lastcommand;
+ lastlogin = right->lastlogin;
}
else
{
exp = m->exp;
}
+monster_::monster_(monster_ &m)
+{
+ name = new char[strlen(m.name) + 1];
+ weapon = new char[strlen(m.weapon) + 1];
+ death = new char[strlen(m.death) + 1];
+
+ strcpy(name, m.name);
+ strcpy(weapon, m.weapon);
+ strcpy(death, m.death);
+
+ strength = m.strength;
+ maxhp = m.maxhp;
+ hp = m.hp;
+ gold = m.gold;
+ exp = m.exp;
+}
+
long int Player::setFlags(long int newflags)
{
flags = newflags;