Esempio 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;
}
Esempio n. 2
0
bool profession::can_pick(player *u, int points) const
{
    if (point_cost() - u->prof->point_cost() > points) {
        return false;
    }

    return true;
}
Esempio 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;
}
Esempio n. 4
0
bool profession::can_pick( const player &u, const int points ) const
{
    return point_cost() - u.prof->point_cost() <= points;
}