Scid
4.7.0
|
Store the number of pieces for each type and color. More...
#include <fastgame.h>
Public Member Functions | |
void | incr (colorT color, pieceT piece_type) |
Add one piece. More... | |
void | decr (colorT color, pieceT piece_type) |
Subtract one piece. More... | |
int8_t | count (colorT color) const |
Return the total number of pieces of the specified color. More... | |
int8_t | count (colorT color, pieceT piece_type) const |
Return the number of pieces of the specified color and type. More... | |
bool | operator== (const MaterialCount &b) const |
bool | operator!= (const MaterialCount &b) const |
Store the number of pieces for each type and color.
Definition at line 33 of file fastgame.h.
|
inline |
Return the total number of pieces of the specified color.
Definition at line 56 of file fastgame.h.
Return the number of pieces of the specified color and type.
Definition at line 63 of file fastgame.h.
Subtract one piece.
Definition at line 47 of file fastgame.h.
Add one piece.
Definition at line 38 of file fastgame.h.
|
inline |
Definition at line 76 of file fastgame.h.
|
inline |
Definition at line 70 of file fastgame.h.