HOG2
|
Go to the source code of this file.
Classes | |
class | FlingBoard |
class | FlingMove |
class | Fling |
struct | std::hash< FlingBoard > |
Namespaces | |
std | |
Enumerations | |
enum | tFlingDir { kLeft = 0, kUp = 1, kRight = 2, kDown = 3 } |
Functions | |
int | GetX (int loc) |
int | GetY (int loc) |
void | GetMirror (const FlingBoard &in, FlingBoard &out, bool horiz, bool vert) |
void | ShiftToCorner (FlingBoard &in) |
uint64_t | GetCanonicalHash (uint64_t which) |
static std::ostream & | operator<< (std::ostream &out, const FlingBoard &loc) |
static std::ostream & | operator<< (std::ostream &out, const FlingMove &loc) |
static bool | operator== (const FlingBoard &l1, const FlingBoard &l2) |
static bool | operator!= (const FlingBoard &l1, const FlingBoard &l2) |
static bool | operator== (const FlingMove &l1, const FlingMove &l2) |
uint64_t GetCanonicalHash | ( | uint64_t | which | ) |
Definition at line 337 of file Fling.cpp.
References GetMirror(), Fling::GetStateFromHash(), Fling::GetStateHash(), and ShiftToCorner().
void GetMirror | ( | const FlingBoard & | in, |
FlingBoard & | out, | ||
bool | horiz, | ||
bool | vert | ||
) |
Definition at line 261 of file Fling.cpp.
References FlingBoard::AddFling(), FlingBoard::HasPiece(), FlingBoard::height, FlingBoard::Reset(), and FlingBoard::width.
Referenced by GetCanonicalHash().
|
inline |
Definition at line 67 of file Fling.h.
Referenced by SnakeBird::SnakeBird::AddSnakeBody(), SnakeBird::SnakeBird::CanPush(), SnakeBird::SnakeBird::Distance(), SnakeBird::SnakeBird::DoFirstMovement(), SnakeBird::SnakeBird::Draw(), SnakeBird::SnakeBird::DrawMovingSnake(), SnakeBird::SnakeBird::DrawObjects(), SnakeBird::SnakeBird::DrawSnakeEnteringGoal(), SnakeBird::SnakeBird::DrawTranslatingSnake(), SnakeBird::SnakeBird::EncodeLevel(), SnakeBird::SnakeBird::GetActions(), SnakeBird::SnakeBird::HandleTeleports(), SnakeBird::SnakeBird::RemoveBlock(), SnakeBird::SnakeBird::RemoveSnake(), SnakeBird::SnakeBird::Render(), SnakeBird::SnakeBird::SetGroundType(), SnakeBird::SnakeBird::SmallerMapHeight(), and SnakeBird::SnakeBird::SmallerMapWidth().
|
inline |
Definition at line 68 of file Fling.h.
Referenced by SnakeBird::SnakeBird::AddSnakeBody(), SnakeBird::SnakeBird::CanPush(), SnakeBird::SnakeBird::Distance(), SnakeBird::SnakeBird::DoFall(), SnakeBird::SnakeBird::DoFirstMovement(), SnakeBird::SnakeBird::Draw(), SnakeBird::SnakeBird::DrawMovingSnake(), SnakeBird::SnakeBird::DrawObjects(), SnakeBird::SnakeBird::DrawSnakeEnteringGoal(), SnakeBird::SnakeBird::DrawTranslatingSnake(), SnakeBird::SnakeBird::EncodeLevel(), SnakeBird::SnakeBird::GetActions(), SnakeBird::SnakeBird::HandleTeleports(), SnakeBird::SnakeBird::RemoveBlock(), SnakeBird::SnakeBird::RemoveSnake(), SnakeBird::SnakeBird::Render(), SnakeBird::SnakeBird::SetGroundType(), SnakeBird::SnakeBird::SmallerMapHeight(), and SnakeBird::SnakeBird::SmallerMapWidth().
|
static |
Definition at line 128 of file Fling.h.
References FlingBoard::GetRawBoard(), FlingBoard::height, and FlingBoard::width.
|
static |
|
static |
|
static |
Definition at line 124 of file Fling.h.
References FlingBoard::GetRawBoard(), FlingBoard::height, and FlingBoard::width.
Definition at line 132 of file Fling.h.
References FlingMove::dir, and FlingMove::startLoc.
void ShiftToCorner | ( | FlingBoard & | in | ) |
Definition at line 283 of file Fling.cpp.
References FlingBoard::AddFling(), FlingBoard::HasPiece(), FlingBoard::height, FlingBoard::RemoveFling(), and FlingBoard::width.
Referenced by GetCanonicalHash().