#include <ptypeProgress.h>
Public Member Functions | |
| PtypeProgress (SimpleState const &state) | |
| int | progress () const |
| void | changeTurn () |
| void | update (const SimpleState &, Move last_move) |
| bool | operator== (const PtypeProgress rhs) const |
Static Public Member Functions | |
| static int | getProgress (const SimpleState &state) |
Private Member Functions | |
| void | addVal (int d) |
Private Attributes | |
| int | val |
Definition at line 31 of file ptypeProgress.h.
| osl::progress::PtypeProgress::PtypeProgress | ( | SimpleState const & | state | ) | [explicit] |
Definition at line 80 of file ptypeProgress.cc.
References osl::BLACK, osl::PieceTable::getPtypeOf(), osl::newPtypeO(), osl::Piece_Table, osl::progress::PtypeProgressTable::progress(), osl::progress::Ptype_Progress_Table, and osl::WHITE.
| void osl::progress::PtypeProgress::addVal | ( | int | d | ) | [inline, private] |
Definition at line 38 of file ptypeProgress.h.
References val.
| void osl::progress::PtypeProgress::changeTurn | ( | ) | [inline] |
Definition at line 40 of file ptypeProgress.h.
| static int osl::progress::PtypeProgress::getProgress | ( | const SimpleState & | state | ) | [inline, static] |
Definition at line 41 of file ptypeProgress.h.
References progress().
| bool osl::progress::PtypeProgress::operator== | ( | const PtypeProgress | rhs | ) | const [inline] |
Definition at line 62 of file ptypeProgress.h.
References val.
| int osl::progress::PtypeProgress::progress | ( | ) | const [inline] |
Definition at line 36 of file ptypeProgress.h.
References val.
Referenced by getProgress(), and osl::progress::operator<<().
| void osl::progress::PtypeProgress::update | ( | const SimpleState & | , |
| Move | last_move | ||
| ) | [inline] |
Definition at line 46 of file ptypeProgress.h.
References osl::Move::capturePtype(), osl::Move::capturePtypeO(), osl::Move::from(), osl::Move::isDrop(), osl::progress::PtypeProgressTable::progress(), osl::PTYPE_EMPTY, osl::progress::Ptype_Progress_Table, osl::Move::ptypeO(), osl::Square::STAND(), osl::Move::to(), and val.
int osl::progress::PtypeProgress::val [private] |
Definition at line 33 of file ptypeProgress.h.
Referenced by addVal(), operator==(), progress(), and update().
1.7.6.1