add accessor for current selected player

This commit is contained in:
Eric House 2015-08-16 09:26:48 -07:00
parent f7f4825c67
commit 01b746860e
2 changed files with 7 additions and 0 deletions

View file

@ -1823,6 +1823,12 @@ board_getTrayVisState( const BoardCtxt* board )
return board->trayVisState;
} /* board_getTrayVisible */
XP_S16
board_getSelPlayer( const BoardCtxt* board )
{
return board->selPlayer;
}
static XP_Bool
setTrayVisState( BoardCtxt* board, XW_TrayVisState newState )
{

View file

@ -197,6 +197,7 @@ XP_Bool board_focusChanged( BoardCtxt* board, BoardObjectType typ,
XP_Bool board_hideTray( BoardCtxt* board );
XP_Bool board_showTray( BoardCtxt* board );
XW_TrayVisState board_getTrayVisState( const BoardCtxt* board );
XP_S16 board_getSelPlayer( const BoardCtxt* board );
void board_invalTrayTiles( BoardCtxt* board, TileBit what );
XP_Bool board_juggleTray( BoardCtxt* board );