]> ruin.nu Git - icfp05.git/commitdiff
private members
authorMichael Andreen <harv@ruin.nu>
Mon, 27 Jun 2005 00:11:07 +0000 (00:11 +0000)
committerMichael Andreen <harv@ruin.nu>
Mon, 27 Jun 2005 00:11:07 +0000 (00:11 +0000)
botsrc/bot.h

index 731a106a4a1dbcc847ee41f2fd65da03c1ac96dd..ee236ee1e0519056ad9d70cb0aef978d0538775b 100644 (file)
@@ -65,7 +65,8 @@ struct SPInfo{
 };
 
 
-struct SPGoal{
+class SPGoal{
+       public:
        virtual ~SPGoal(){}
        virtual int operator()(const SPInfo* node) const = 0;
 };
@@ -99,16 +100,18 @@ class Bot {
        int _smell;
 };
 
-struct SimpleSPGoal : public SPGoal{
+class SimpleSPGoal : public SPGoal{
        std::string _to;
        SimpleSPGoal(std::string to);
+       public:
        int operator()(const SPInfo* node) const;
 };
 
-struct FindPlayer : SPGoal{
+class FindPlayer : SPGoal{
        int _limit;
        const __gnu_cxx::hash_map<std::string, Player>& _players;
        PlayerType _type;
+       public:
        FindPlayer(const __gnu_cxx::hash_map<std::string, Player>& players, PlayerType type, int limit = 0);
        int operator()(const SPInfo* node) const;
 };