HOG2
|
#include <RubiksCubeCorners.h>
Public Member Functions | |
RubiksCornerStateArray () | |
void | Reset () |
int | GetCubeInLoc (unsigned int whichLoc) const |
void | SetCubeInLoc (unsigned int whichLoc, int cube) |
uint64_t | GetCubeOrientation (unsigned int whichLoc) const |
void | SetCubeOrientation (unsigned int whichLoc, int orient) |
int | GetFaceInLoc (unsigned int whichLoc) const |
void | Rotate (uint64_t a, uint64_t b, uint64_t c, uint64_t d) |
void | Swap (uint64_t a, uint64_t b, uint64_t c, uint64_t d) |
Public Attributes | |
uint8_t | state [16] |
Definition at line 38 of file RubiksCubeCorners.h.
RubiksCornerStateArray::RubiksCornerStateArray | ( | ) |
Definition at line 225 of file RubiksCubeCorners.cpp.
References Reset().
int RubiksCornerStateArray::GetCubeInLoc | ( | unsigned int | whichLoc | ) | const |
Definition at line 238 of file RubiksCubeCorners.cpp.
References state.
Referenced by RubiksCorner::ApplyAction(), RubikCornerPDB::GetPDBHash(), RubikDualPDB::HCost(), RubikArbitraryGoalPDB::HCost(), and operator<<().
uint64_t RubiksCornerStateArray::GetCubeOrientation | ( | unsigned int | whichLoc | ) | const |
Definition at line 248 of file RubiksCubeCorners.cpp.
References state.
Referenced by RubiksCorner::ApplyAction(), RubikCornerPDB::GetPDBHash(), RubikDualPDB::HCost(), RubikArbitraryGoalPDB::HCost(), operator<<(), and RubiksCorner::rankPlayerFirstTwo().
int RubiksCornerStateArray::GetFaceInLoc | ( | unsigned int | whichLoc | ) | const |
Definition at line 260 of file RubiksCubeCorners.cpp.
Referenced by RubiksCorner::SetFaceColor().
void RubiksCornerStateArray::Reset | ( | ) |
Definition at line 229 of file RubiksCubeCorners.cpp.
References SetCubeInLoc(), and state.
Referenced by RubiksState::Reset(), and RubiksCornerStateArray().
void RubiksCornerStateArray::Rotate | ( | uint64_t | a, |
uint64_t | b, | ||
uint64_t | c, | ||
uint64_t | d | ||
) |
Definition at line 266 of file RubiksCubeCorners.cpp.
Referenced by RubiksCorner::ApplyAction().
void RubiksCornerStateArray::SetCubeInLoc | ( | unsigned int | whichLoc, |
int | cube | ||
) |
Definition at line 243 of file RubiksCubeCorners.cpp.
References state.
Referenced by RubikCornerPDB::GetStateFromPDBHash(), RubikDualPDB::HCost(), RubikArbitraryGoalPDB::HCost(), and Reset().
void RubiksCornerStateArray::SetCubeOrientation | ( | unsigned int | whichLoc, |
int | orient | ||
) |
Definition at line 254 of file RubiksCubeCorners.cpp.
References state.
Referenced by RubiksCorner::ApplyAction(), RubikCornerPDB::GetStateFromPDBHash(), RubikDualPDB::HCost(), and RubikArbitraryGoalPDB::HCost().
void RubiksCornerStateArray::Swap | ( | uint64_t | a, |
uint64_t | b, | ||
uint64_t | c, | ||
uint64_t | d | ||
) |
Definition at line 275 of file RubiksCubeCorners.cpp.
Referenced by RubiksCorner::ApplyAction().
uint8_t RubiksCornerStateArray::state[16] |
Definition at line 54 of file RubiksCubeCorners.h.
Referenced by GetCubeInLoc(), GetCubeOrientation(), std::hash< RubiksCornerStateArray >::operator()(), operator==(), Reset(), Rotate(), SetCubeInLoc(), SetCubeOrientation(), and Swap().