Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

duplicate_level_finder.h

00001 /*
00002  *   EasySok --- A(nother) sokoban game for KDE.
00003  *
00004  *   Copyright (C) 2001 by Ralf Schmelter (ralfs@pc2a.chemie.uni-dortmund.de).
00005  *
00006  *   This program is free software; you can redistribute it and/or modify
00007  *   it under the terms of the GNU General Public License version 2 as
00008  *   published by the Free Software Foundation.
00009  *
00010  *   This program is distributed in the hope that it will be useful,
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *   GNU General Public License for more details.
00014  *
00015  *   You should have received a copy of the GNU General Public License
00016  *   along with this program; if not, write to the Free Software
00017  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00018  */
00019 
00020 
00021 #ifndef EASYSOK_DUPLICATE_LEVEL_FINDER_INC_GUARD_H
00022 #define EASYSOK_DUPLICATE_LEVEL_FINDER_INC_GUARD_H
00023 
00024 
00025 #include <map>
00026 
00027 #include <qstring.h>
00028 
00029 #include "compressed_map.h"
00030 
00031 
00032 class Collection;
00033 
00034 
00035 
00036 
00044 class DuplicateLevelFinder
00045 {
00046 
00047 public:
00048 
00053     DuplicateLevelFinder();
00054 
00055 
00060     bool process();
00061 
00062 
00067     int steps() const;
00068 
00069 
00074     bool finished() const;
00075 
00076 
00081     bool foundDuplicates() const;
00082 
00083 
00088     QString const & text() const;
00089 
00090 
00091 private:
00092 
00097     int m_number_of_collections;
00098 
00099 
00104     int m_collection_nr;
00105 
00106 
00111     Collection * m_collection;
00112 
00113 
00118     int m_number_of_levels;
00119 
00120 
00125     int m_level_nr;
00126 
00127 
00132     std::map<CompressedMap, int> maps;
00133 
00134 
00139     QString m_text;
00140 
00141 
00146     int m_steps;
00147 };
00148 
00149 
00150 #endif

Generated at Sun Jan 6 18:49:09 2002 for EasySok by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001