Handles guifx output. More...
Public Member Functions | |
GuiFx () | |
void | SetChildren (const DfpnChildren &children, const std::vector< DfpnData > &bounds) |
void | PlayMove (HexColor color, int index) |
void | UndoMove () |
void | UpdateCurrentBounds (const DfpnBounds &bounds) |
void | Write () |
Writes output only if last write was more than m_delay seconds ago or if the move is different. | |
void | WriteForced () |
Always writes output. | |
Private Member Functions | |
void | DoWrite () |
Writes progress indication. | |
Private Attributes | |
DfpnChildren | m_children |
std::vector< DfpnData > | m_data |
HexColor | m_color |
int | m_index |
double | m_timeOfLastWrite |
int | m_indexAtLastWrite |
double | m_delay |
Handles guifx output.
Definition at line 489 of file DfpnSolver.hpp.
DfpnSolver::GuiFx::GuiFx | ( | ) |
Definition at line 81 of file DfpnSolver.cpp.
void DfpnSolver::GuiFx::DoWrite | ( | ) | [private] |
Writes progress indication.
Definition at line 134 of file DfpnSolver.cpp.
References BLACK, DfpnChildren::FirstMove(), m_children, m_color, m_data, m_index, and DfpnChildren::Size().
Referenced by Write(), and WriteForced().
void DfpnSolver::GuiFx::PlayMove | ( | HexColor | color, | |
int | index | |||
) |
Definition at line 95 of file DfpnSolver.cpp.
References m_color, and m_index.
Referenced by DfpnSolver::MID().
void DfpnSolver::GuiFx::SetChildren | ( | const DfpnChildren & | children, | |
const std::vector< DfpnData > & | bounds | |||
) |
Definition at line 88 of file DfpnSolver.cpp.
References m_children, and m_data.
Referenced by DfpnSolver::MID().
void DfpnSolver::GuiFx::UndoMove | ( | ) |
void DfpnSolver::GuiFx::UpdateCurrentBounds | ( | const DfpnBounds & | bounds | ) |
Definition at line 106 of file DfpnSolver.cpp.
References HexAssert, m_data, and m_index.
Referenced by DfpnSolver::MID().
void DfpnSolver::GuiFx::Write | ( | ) |
Writes output only if last write was more than m_delay seconds ago or if the move is different.
Definition at line 120 of file DfpnSolver.cpp.
References DoWrite(), Get(), m_delay, m_index, m_indexAtLastWrite, and m_timeOfLastWrite.
Referenced by DfpnSolver::MID().
void DfpnSolver::GuiFx::WriteForced | ( | ) |
Always writes output.
Definition at line 113 of file DfpnSolver.cpp.
References DoWrite().
Referenced by DfpnSolver::MID().
DfpnChildren DfpnSolver::GuiFx::m_children [private] |
Definition at line 510 of file DfpnSolver.hpp.
Referenced by DoWrite(), and SetChildren().
HexColor DfpnSolver::GuiFx::m_color [private] |
Definition at line 514 of file DfpnSolver.hpp.
Referenced by DoWrite(), and PlayMove().
std::vector<DfpnData> DfpnSolver::GuiFx::m_data [private] |
Definition at line 512 of file DfpnSolver.hpp.
Referenced by DoWrite(), SetChildren(), and UpdateCurrentBounds().
double DfpnSolver::GuiFx::m_delay [private] |
Definition at line 522 of file DfpnSolver.hpp.
Referenced by Write().
int DfpnSolver::GuiFx::m_index [private] |
Definition at line 516 of file DfpnSolver.hpp.
Referenced by DoWrite(), PlayMove(), UndoMove(), UpdateCurrentBounds(), and Write().
int DfpnSolver::GuiFx::m_indexAtLastWrite [private] |
Definition at line 520 of file DfpnSolver.hpp.
Referenced by Write().
double DfpnSolver::GuiFx::m_timeOfLastWrite [private] |
Definition at line 518 of file DfpnSolver.hpp.
Referenced by Write().