00001 /* BurrTools 00002 * 00003 * BurrTools is the legal property of its developers, whose 00004 * names are listed in the COPYRIGHT file, which is included 00005 * within the source distribution. 00006 * 00007 * This program is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU General Public License 00009 * as published by the Free Software Foundation; either version 2 00010 * of the License, or (at your option) any later version. 00011 00012 * This program is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 00017 * You should have received a copy of the GNU General Public License 00018 * along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00020 */ 00021 #ifndef __MOVEMENTCACHE_1_H__ 00022 #define __MOVEMENTCACHE_1_H__ 00023 00024 #include "movementcache.h" 00025 00027 class movementCache_1_c : public movementCache_c { 00028 00029 public: 00030 00031 movementCache_1_c(const problem_c * puz); 00032 00033 private: 00034 00035 unsigned int* moCalcValues(const voxel_c * sh1, const voxel_c * sh2, int dx, int dy, int dz); 00036 00037 unsigned int numDirections(void); 00038 void getDirection(unsigned int dir, int * x, int * y, int * z); 00039 00040 private: 00041 00042 // no copying and assigning 00043 movementCache_1_c(const movementCache_1_c&); 00044 void operator=(const movementCache_1_c&); 00045 }; 00046 00047 #endif