int Player::getCardCount(bool include_equip) const{ int count = getHandcardNum(); if(include_equip){ if(weapon) count ++; if(armor) count ++; if(defensive_horse) count ++; if(offensive_horse) count ++; } return count; }
bool Player::isKongcheng() const{ return getHandcardNum() == 0; }
bool Player::isNude() const{ return getHandcardNum() == 0 && getWeapon() == NULL && getArmor() == NULL && getDefensiveHorse() == NULL && getOffensiveHorse() == NULL; }