HOG2
|
#include <RC.h>
Public Member Functions | |
RCState () | |
void | Reset () |
void | RotateFace (int move) |
void | RotateEdges (int move) |
void | RotateCorners (int move) |
void | SwapPositions (int p1, int p2) |
void | ShiftPositionsCW (const int(&arr)[4]) |
void | ShiftPositionsCCW (const int(&arr)[4]) |
void | PrintState () |
void | RotateFace (int face, int move) |
void | RotateEdges (int face, int move) |
void | RotateCorners (int face, int move) |
void | ShiftPositions (const int(&arr)[4], bool forward) |
Public Attributes | |
int | indices [20] |
int | rotation [20] |
void RCState::PrintState | ( | ) |
|
inline |
Definition at line 143 of file RC.h.
References indices, and rotation.
Referenced by RubiksCubeInstances::GetKorfRubikInstance(), RubiksCubeInstances::GetRandomN(), RubiksCubeInstances::GetSuperFlip(), and RCState().
void RCState::RotateCorners | ( | int | face, |
int | move | ||
) |
Definition at line 797 of file RC.cpp.
References cornersOnFace, and rotation.
void RCState::RotateCorners | ( | int | move | ) |
Definition at line 775 of file RC.cpp.
References cornersOnFace, and rotation.
Referenced by RotateFace().
void RCState::RotateEdges | ( | int | face, |
int | move | ||
) |
Definition at line 760 of file RC.cpp.
References edgesOnFace, and rotation.
void RCState::RotateEdges | ( | int | move | ) |
Definition at line 748 of file RC.cpp.
References edgesOnFace, and rotation.
Referenced by RotateFace().
void RCState::RotateFace | ( | int | face, |
int | move | ||
) |
Definition at line 621 of file RC.cpp.
References cornersOnFace, edgesOnFace, RotateCorners(), RotateEdges(), ShiftPositions(), and SwapPositions().
void RCState::RotateFace | ( | int | move | ) |
Definition at line 650 of file RC.cpp.
References cornersOnFace, edgesOnFace, RotateCorners(), RotateEdges(), ShiftPositionsCCW(), ShiftPositionsCW(), and SwapPositions().
Referenced by RC::ApplyAction(), and RC::UndoAction().
void RCState::ShiftPositions | ( | const int(&) | arr[4], |
bool | forward | ||
) |
Definition at line 908 of file RC.cpp.
References indices, and rotation.
Referenced by RotateFace().
void RCState::ShiftPositionsCCW | ( | const int(&) | arr[4] | ) |
Definition at line 883 of file RC.cpp.
References indices, and rotation.
Referenced by RotateFace().
void RCState::ShiftPositionsCW | ( | const int(&) | arr[4] | ) |
Definition at line 858 of file RC.cpp.
References indices, and rotation.
Referenced by RotateFace().
void RCState::SwapPositions | ( | int | p1, |
int | p2 | ||
) |
Definition at line 844 of file RC.cpp.
References indices, and rotation.
Referenced by RotateFace().
int RCState::indices[20] |
Definition at line 153 of file RC.h.
Referenced by RC::Draw(), RCPDB::GetCornerLocationHash(), RCPDB::GetEdgeLocationHash(), RC::GetPDBHashCorner(), RCPDB::GetStateFromCornerLocationHash(), RCPDB::GetStateFromEdgeLocationHash(), RC::GetStateFromPDBHashCorner(), operator==(), PrintState(), Reset(), ShiftPositions(), ShiftPositionsCCW(), ShiftPositionsCW(), and SwapPositions().
int RCState::rotation[20] |
Definition at line 154 of file RC.h.
Referenced by RC::Draw(), RCPDB::GetCornerRotationHash(), RCPDB::GetEdgeRotationHash(), RC::GetPDBHashCorner(), RCPDB::GetStateFromCornerRotationHash(), RCPDB::GetStateFromEdgeRotationHash(), RC::GetStateFromPDBHashCorner(), RC::GetStateHashCorner(), operator<<(), operator==(), PrintState(), Reset(), RotateCorners(), RotateEdges(), ShiftPositions(), ShiftPositionsCCW(), ShiftPositionsCW(), and SwapPositions().