HOG2
|
#include <RubiksCubeEdges.h>
Public Member Functions | |
RubikEdgeStateArray () | |
void | Reset () |
void | Clear () |
void | GetDual (RubikEdgeStateArray &s) const |
int | GetCubeInLoc (int whichLoc) const |
void | SetCubeInLoc (int whichLoc, int cube) |
bool | GetCubeOrientation (int whichLoc) const |
void | SetCubeOrientation (int whichLoc, bool flip) |
void | FlipCubeOrientation (int whichLoc) |
Public Attributes | |
uint8_t | state [24] |
Definition at line 37 of file RubiksCubeEdges.h.
RubikEdgeStateArray::RubikEdgeStateArray | ( | ) |
Definition at line 120 of file RubiksCubeEdges.cpp.
References Reset().
void RubikEdgeStateArray::Clear | ( | ) |
Definition at line 132 of file RubiksCubeEdges.cpp.
References Reset().
void RubikEdgeStateArray::FlipCubeOrientation | ( | int | whichLoc | ) |
Definition at line 167 of file RubiksCubeEdges.cpp.
References state.
Referenced by RotateRubikEdgeClockwise().
int RubikEdgeStateArray::GetCubeInLoc | ( | int | whichLoc | ) | const |
Definition at line 136 of file RubiksCubeEdges.cpp.
References state.
Referenced by GetDual(), RubikEdgePDB::GetPDBHash(), RubikEdgePDB::GetStateHash(), RubikDualPDB::HCost(), RubikArbitraryGoalPDB::HCost(), operator<<(), RotateRubikEdgeClockwise(), and RubikEdge::SetCubeColor().
bool RubikEdgeStateArray::GetCubeOrientation | ( | int | whichLoc | ) | const |
Definition at line 151 of file RubiksCubeEdges.cpp.
References state.
Referenced by GetDual(), RubikEdgePDB::GetPDBHash(), RubikEdgePDB::GetStateHash(), RubikEdgeOrientationPDB::GetStateHash(), RubikDualPDB::HCost(), RubikArbitraryGoalPDB::HCost(), operator<<(), RubikEdge::rankPlayerFirstTwo(), RotateRubikEdgeClockwise(), and RubikEdge::SetCubeColor().
void RubikEdgeStateArray::GetDual | ( | RubikEdgeStateArray & | s | ) | const |
Definition at line 175 of file RubiksCubeEdges.cpp.
References GetCubeInLoc(), GetCubeOrientation(), SetCubeInLoc(), and SetCubeOrientation().
Referenced by RubiksCube::OpenGLDrawEdgeDual().
void RubikEdgeStateArray::Reset | ( | ) |
Definition at line 124 of file RubiksCubeEdges.cpp.
References SetCubeInLoc(), and state.
Referenced by Clear(), and RubikEdgeStateArray().
void RubikEdgeStateArray::SetCubeInLoc | ( | int | whichLoc, |
int | cube | ||
) |
Definition at line 141 of file RubiksCubeEdges.cpp.
References state.
Referenced by GetDual(), RubikEdgePDB::GetStateFromHash(), RubikEdgePDB::GetStateFromPDBHash(), RubikDualPDB::HCost(), RubikArbitraryGoalPDB::HCost(), Reset(), and RotateRubikEdgeClockwise().
void RubikEdgeStateArray::SetCubeOrientation | ( | int | whichLoc, |
bool | flip | ||
) |
Definition at line 156 of file RubiksCubeEdges.cpp.
References state.
Referenced by GetDual(), RubikEdgePDB::GetStateFromHash(), RubikEdgeOrientationPDB::GetStateFromHash(), RubikEdgePDB::GetStateFromPDBHash(), RubikDualPDB::HCost(), RubikArbitraryGoalPDB::HCost(), and RotateRubikEdgeClockwise().
uint8_t RubikEdgeStateArray::state[24] |
Definition at line 52 of file RubiksCubeEdges.h.
Referenced by FlipCubeOrientation(), GetCubeInLoc(), GetCubeOrientation(), std::hash< RubikEdgeStateArray >::operator()(), operator==(), Reset(), SetCubeInLoc(), and SetCubeOrientation().