Beispiel #1
0
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;
}
Beispiel #2
0
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);
}