From 6dcb23cff9df56ada5c065398d08730ee02c9c5a Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Mon, 27 Jun 2005 00:11:07 +0000 Subject: [PATCH] private members --- botsrc/bot.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/botsrc/bot.h b/botsrc/bot.h index 731a106..ee236ee 100644 --- a/botsrc/bot.h +++ b/botsrc/bot.h @@ -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& _players; PlayerType _type; + public: FindPlayer(const __gnu_cxx::hash_map& players, PlayerType type, int limit = 0); int operator()(const SPInfo* node) const; }; -- 2.39.2