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

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

Detailed Description

Definition at line 38 of file RubiksCubeCorners.h.

Constructor & Destructor Documentation

◆ RubiksCornerStateArray()

RubiksCornerStateArray::RubiksCornerStateArray ( )

Definition at line 225 of file RubiksCubeCorners.cpp.

References Reset().

Member Function Documentation

◆ GetCubeInLoc()

int RubiksCornerStateArray::GetCubeInLoc ( unsigned int  whichLoc) const

◆ GetCubeOrientation()

uint64_t RubiksCornerStateArray::GetCubeOrientation ( unsigned int  whichLoc) const

◆ GetFaceInLoc()

int RubiksCornerStateArray::GetFaceInLoc ( unsigned int  whichLoc) const

Definition at line 260 of file RubiksCubeCorners.cpp.

Referenced by RubiksCorner::SetFaceColor().

◆ Reset()

void RubiksCornerStateArray::Reset ( )

Definition at line 229 of file RubiksCubeCorners.cpp.

References SetCubeInLoc(), and state.

Referenced by RubiksState::Reset(), and RubiksCornerStateArray().

◆ Rotate()

void RubiksCornerStateArray::Rotate ( uint64_t  a,
uint64_t  b,
uint64_t  c,
uint64_t  d 
)

Definition at line 266 of file RubiksCubeCorners.cpp.

References d, and state.

Referenced by RubiksCorner::ApplyAction().

◆ SetCubeInLoc()

void RubiksCornerStateArray::SetCubeInLoc ( unsigned int  whichLoc,
int  cube 
)

◆ SetCubeOrientation()

void RubiksCornerStateArray::SetCubeOrientation ( unsigned int  whichLoc,
int  orient 
)

◆ Swap()

void RubiksCornerStateArray::Swap ( uint64_t  a,
uint64_t  b,
uint64_t  c,
uint64_t  d 
)

Definition at line 275 of file RubiksCubeCorners.cpp.

References d, and state.

Referenced by RubiksCorner::ApplyAction().

Member Data Documentation

◆ state

uint8_t RubiksCornerStateArray::state[16]

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