Exemplo n.º 1
0
bool profession::can_pick( const player &u, const int points ) const
{
    if( point_cost() - u.prof->point_cost() > points ) {
        return false;
    }

    return true;
}
Exemplo n.º 2
0
bool profession::can_pick(player *u, int points) const
{
    if (point_cost() - u->prof->point_cost() > points) {
        return false;
    }

    return true;
}
Exemplo n.º 3
0
std::string profession::can_pick(player* u, int points) const {
    std::string rval = "YES";
    if(point_cost() - u->prof->point_cost() > points) rval = "INSUFFICIENT_POINTS";
    return rval;
}
Exemplo n.º 4
0
bool profession::can_pick( const player &u, const int points ) const
{
    return point_cost() - u.prof->point_cost() <= points;
}