class SPGoal{
public:
- virtual ~SPGoal(){}
- virtual int operator()(const SPInfo* node) const = 0;
+ virtual ~SPGoal(){}
+ virtual int operator()(const SPInfo* node) const = 0;
};
class Bot {
class SimpleSPGoal : public SPGoal{
std::string _to;
- SimpleSPGoal(std::string to);
public:
+ SimpleSPGoal(std::string to);
int operator()(const SPInfo* node) const;
};
-class FindPlayer : SPGoal{
+class FindPlayer : public SPGoal{
int _limit;
const __gnu_cxx::hash_map<std::string, Player>& _players;
PlayerType _type;