1 #ifndef SPRINGMAPFEATURE_H 2 #define SPRINGMAPFEATURE_H 3 4 #include <string> 5 #include "../Position.h" 6 7 #include "../interfaces/IMapFeature.h" 8 #include "../interfaces/IGame.h" 9 10 class CSpringMapFeature : public IMapFeature { 11 public: 12 13 CSpringMapFeature(springai::OOAICallback* callback, springai::Feature* f, IGame* game); 14 virtual ~CSpringMapFeature(); 15 16 virtual int ID(); 17 virtual std::string Name(); 18 virtual Position GetPosition(); 19 20 virtual float ResourceValue(int idx); 21 virtual bool Reclaimable(); 22 23 springai::Feature* feature; 24 protected: 25 springai::OOAICallback* callback; 26 IGame* game; 27 springai::FeatureDef* def; 28 }; 29 30 31 #endif 32