movementCache_0_c Class Reference

the movement cache for the cube grid More...

#include <movementcache_0.h>

Inheritance diagram for movementCache_0_c:

Inheritance graph
[legend]
Collaboration diagram for movementCache_0_c:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 movementCache_0_c (const problem_c *puz)

Private Member Functions

unsigned int * moCalcValues (const voxel_c *sh1, const voxel_c *sh2, int dx, int dy, int dz)
 when the entry is not inside the table, this function calculates the values for the movement info
virtual unsigned int numDirections (void)
 return the number of different directions of movement that are possible within the space grid that that movement cache is for
virtual void getDirection (unsigned int dir, int *x, int *y, int *z)
 return the movement vector of the given direction
 movementCache_0_c (const movementCache_0_c &)
void operator= (const movementCache_0_c &)


Detailed Description

the movement cache for the cube grid

Constructor & Destructor Documentation

movementCache_0_c::movementCache_0_c ( const problem_c puz  ) 

movementCache_0_c::movementCache_0_c ( const movementCache_0_c  )  [private]


Member Function Documentation

void movementCache_0_c::getDirection ( unsigned int  dir,
int *  x,
int *  y,
int *  z 
) [private, virtual]

return the movement vector of the given direction

Implements movementCache_c.

References bt_assert.

unsigned int * movementCache_0_c::moCalcValues ( const voxel_c sh1,
const voxel_c sh2,
int  dx,
int  dy,
int  dz 
) [private, virtual]

when the entry is not inside the table, this function calculates the values for the movement info

Implements movementCache_c.

References voxel_c::boundX1(), voxel_c::boundX2(), voxel_c::boundY1(), voxel_c::boundY2(), voxel_c::boundZ1(), voxel_c::boundZ2(), voxel_c::getHx(), voxel_c::getHy(), voxel_c::getHz(), voxel_c::isFilled2(), max(), min(), and NUM_DIRECTIONS.

unsigned int movementCache_0_c::numDirections ( void   )  [private, virtual]

return the number of different directions of movement that are possible within the space grid that that movement cache is for

Implements movementCache_c.

References NUM_DIRECTIONS.

void movementCache_0_c::operator= ( const movementCache_0_c  )  [private]


The documentation for this class was generated from the following files:

Generated on Sun Oct 10 10:02:58 2010 for BurrTools by  doxygen 1.5.8