diff options
Diffstat (limited to 'src/main/game/global_cache.h')
| -rw-r--r-- | src/main/game/global_cache.h | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/main/game/global_cache.h b/src/main/game/global_cache.h index 4658e52..9541100 100644 --- a/src/main/game/global_cache.h +++ b/src/main/game/global_cache.h @@ -11,20 +11,14 @@ #include <boost/pool/pool_alloc.hpp> #include "sol_rules.h" -#include "game_state.h" +#include "search-state/game_state.h" struct cached_game_state { - typedef std::vector< -#ifdef NO_REDUCED_STATE - pile -#else - card -#endif - > state_data; + typedef std::vector<card> state_data; typedef state_data::size_type size_type; explicit cached_game_state(const game_state&); - void add_pile(game_state::pile_ref, const game_state&); + void add_pile(pile::ref, const game_state&); void add_card(card, const game_state&); void add_card_divider(); @@ -37,9 +31,6 @@ struct hasher { std::size_t operator() (const cached_game_state&) const; std::size_t hash_value(const card&) const; -#ifdef NO_REDUCED_STATE - std::size_t hash_value(const pile&) const; -#endif std::size_t combine(std::size_t&, std::size_t) const; const game_state& init_gs; |
