From b637c2c6e60adf3826377fc8714bcaeec9db1d64 Mon Sep 17 00:00:00 2001 From: ehouse Date: Fri, 25 Jun 2004 06:51:24 +0000 Subject: [PATCH] engine is now responsile for asking for and tracking how many tiles in the tray should be used in hints. --- common/engine.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/common/engine.h b/common/engine.h index 4ba1e843a..a4d4c6880 100644 --- a/common/engine.h +++ b/common/engine.h @@ -27,12 +27,14 @@ extern "C" { #endif -typedef struct HintLimits { +#ifdef XWFEATURE_SEARCHLIMIT +typedef struct BdHintLimits { XP_U16 left; XP_U16 top; XP_U16 right; XP_U16 bottom; -} HintLimits; +} BdHintLimits; +#endif XP_U16 engine_getScoreCache( EngineCtxt* engine, XP_U16 row ); @@ -55,9 +57,10 @@ void engine_destroy( EngineCtxt* ctxt ); #define NO_SCORE_LIMIT 10000 /* for targetScore */ XP_Bool engine_findMove( EngineCtxt* ctxt, ModelCtxt* model, DictionaryCtxt* dict, const Tile* tiles, - XP_U16 nTiles, XP_U16 nTilesToUse, + XP_U16 nTiles, #ifdef XWFEATURE_SEARCHLIMIT - HintLimits* searchLimits, + BdHintLimits* boardLimits, + XP_Bool useTileLimits, #endif XP_U16 targetScore, XP_Bool* canMove, MoveInfo* result );