HOG2
Public Member Functions | Public Attributes | List of all members
RCState Class Reference

#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]
 

Detailed Description

Definition at line 136 of file RC.h.

Constructor & Destructor Documentation

◆ RCState()

RCState::RCState ( )
inline

Definition at line 139 of file RC.h.

References Reset().

Member Function Documentation

◆ PrintState()

void RCState::PrintState ( )

Definition at line 940 of file RC.cpp.

References indices, and rotation.

◆ Reset()

void RCState::Reset ( )
inline

◆ RotateCorners() [1/2]

void RCState::RotateCorners ( int  face,
int  move 
)

Definition at line 797 of file RC.cpp.

References cornersOnFace, and rotation.

◆ RotateCorners() [2/2]

void RCState::RotateCorners ( int  move)

Definition at line 775 of file RC.cpp.

References cornersOnFace, and rotation.

Referenced by RotateFace().

◆ RotateEdges() [1/2]

void RCState::RotateEdges ( int  face,
int  move 
)

Definition at line 760 of file RC.cpp.

References edgesOnFace, and rotation.

◆ RotateEdges() [2/2]

void RCState::RotateEdges ( int  move)

Definition at line 748 of file RC.cpp.

References edgesOnFace, and rotation.

Referenced by RotateFace().

◆ RotateFace() [1/2]

void RCState::RotateFace ( int  face,
int  move 
)

◆ RotateFace() [2/2]

void RCState::RotateFace ( int  move)

◆ ShiftPositions()

void RCState::ShiftPositions ( const int(&)  arr[4],
bool  forward 
)

Definition at line 908 of file RC.cpp.

References indices, and rotation.

Referenced by RotateFace().

◆ ShiftPositionsCCW()

void RCState::ShiftPositionsCCW ( const int(&)  arr[4])

Definition at line 883 of file RC.cpp.

References indices, and rotation.

Referenced by RotateFace().

◆ ShiftPositionsCW()

void RCState::ShiftPositionsCW ( const int(&)  arr[4])

Definition at line 858 of file RC.cpp.

References indices, and rotation.

Referenced by RotateFace().

◆ SwapPositions()

void RCState::SwapPositions ( int  p1,
int  p2 
)

Definition at line 844 of file RC.cpp.

References indices, and rotation.

Referenced by RotateFace().

Member Data Documentation

◆ indices

int RCState::indices[20]

◆ rotation

int RCState::rotation[20]

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