bool Player::canGive(const Count<const Transferable *> & types) const { Count<const Transferable *>::const_iterator itr; for (itr = types.begin(); itr != types.end(); ++itr) if (!canGive(itr->first, itr->second)) return false; return true; }
void Player::give(const Count<const Transferable *> & types) { Count<const Transferable *>::const_iterator itr; for (itr = types.begin(); itr != types.end(); ++itr) give(itr->first, itr->second); }