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