add and call util_turnChanged

This commit is contained in:
ehouse 2008-02-26 13:46:33 +00:00
parent dfe0249490
commit b397c30178
2 changed files with 6 additions and 0 deletions

View file

@ -3367,6 +3367,8 @@ boardTurnChanged( void* p_board )
setTimerIf( board ); setTimerIf( board );
board->scoreBoardInvalid = XP_TRUE; board->scoreBoardInvalid = XP_TRUE;
util_turnChanged( board->util );
} /* boardTurnChanged */ } /* boardTurnChanged */
static void static void

View file

@ -124,6 +124,7 @@ typedef struct UtilVtable {
XP_U16 nVisibleRows ); XP_U16 nVisibleRows );
void (*m_util_yOffsetChange)(XW_UtilCtxt* uc, XP_U16 oldOffset, void (*m_util_yOffsetChange)(XW_UtilCtxt* uc, XP_U16 oldOffset,
XP_U16 newOffset ); XP_U16 newOffset );
void (*m_util_turnChanged)(XW_UtilCtxt* uc);
void (*m_util_notifyGameOver)( XW_UtilCtxt* uc ); void (*m_util_notifyGameOver)( XW_UtilCtxt* uc );
@ -198,6 +199,9 @@ struct XW_UtilCtxt {
#define util_yOffsetChange( uc, o, n ) \ #define util_yOffsetChange( uc, o, n ) \
(uc)->vtable->m_util_yOffsetChange((uc), (o), (n) ) (uc)->vtable->m_util_yOffsetChange((uc), (o), (n) )
#define util_turnChanged( uc ) \
(uc)->vtable->m_util_turnChanged((uc) )
#define util_notifyGameOver( uc ) \ #define util_notifyGameOver( uc ) \
(uc)->vtable->m_util_notifyGameOver((uc)) (uc)->vtable->m_util_notifyGameOver((uc))