00001 #ifndef HEADER_FINDERFIELD_H 00002 #define HEADER_FINDERFIELD_H 00003 00004 class V2; 00005 00006 #include "NoCopy.h" 00007 00008 /** 00009 * Array of closed nodes used for finding. 00010 */ 00011 class FinderField : public NoCopy { 00012 private: 00013 bool **m_closed; 00014 int m_w; 00015 int m_h; 00016 public: 00017 FinderField(int w, int h); 00018 virtual ~FinderField(); 00019 void reset(); 00020 00021 void markClosed(const V2 &loc); 00022 bool isClosed(const V2 &loc) const; 00023 }; 00024 00025 #endif