osl::progress::PtypeProgress Class Reference

- Main Page
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
osl::progress::PtypeProgress Class Reference

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

## Detailed Description

Definition at line 31 of file ptypeProgress.h.

## Constructor & Destructor Documentation

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.

## Member Function Documentation

void osl::progress::PtypeProgress::addVal | ( | int | d) |  |
| inlineprivate

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) |  |
| inlinestatic

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.

## Member Data Documentation

int osl::progress::PtypeProgress::val
| private

Definition at line 33 of file ptypeProgress.h.

Referenced by addVal(), operator==(), progress(), and update().

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

- ptypeProgress.h
- ptypeProgress.cc