#include <movementcache_1.h>


Public Member Functions | |
| movementCache_1_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 | |
| 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 | |
| void | getDirection (unsigned int dir, int *x, int *y, int *z) |
| return the movement vector of the given direction | |
| movementCache_1_c (const movementCache_1_c &) | |
| void | operator= (const movementCache_1_c &) |
| movementCache_1_c::movementCache_1_c | ( | const problem_c * | puz | ) |
| movementCache_1_c::movementCache_1_c | ( | const movementCache_1_c & | ) | [private] |
| void movementCache_1_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, dirs, and NUM_DIRECTIONS.
| unsigned int * movementCache_1_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(), bt_assert, checks, dirs, voxel_c::getHx(), voxel_c::getHy(), voxel_c::getHz(), voxel_c::isEmpty(), voxel_c::isEmpty2(), voxel_c::isFilled2(), and NUM_DIRECTIONS.
| unsigned int movementCache_1_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_1_c::operator= | ( | const movementCache_1_c & | ) | [private] |
1.5.8