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

push_optimizer.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_PUSH_OPTIMIZER_INC_GUARD_H
00022 #define EASYSOK_PUSH_OPTIMIZER_INC_GUARD_H
00023 
00024 
00025 #include "movements.h"
00026 #include "optimizer.h"
00027 
00028 
00029 class Map;
00030 
00031 
00032 
00033 
00042 class PushOptimizer : public Optimizer
00043 {
00044 
00045 public:
00046 
00051     PushOptimizer();
00052 
00053 
00061     PushOptimizer(Map const & map, Movements const & moves);
00062 
00063 
00064     virtual void optimize(Map const & map, Movements const & moves);
00065     virtual Movements const & moves() const;
00066     virtual int numberOfMoves() const;
00067     virtual int numberOfPushes() const;
00068 
00069 
00070 private:
00071 
00076     Movements m_moves;
00077 
00078 
00083     int m_number_of_moves;
00084 
00085 
00090     int m_number_of_pushes;
00091 };
00092 
00093 
00094 #endif

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