aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/global_cache.h
diff options
context:
space:
mode:
authorCharlie Blake2018-06-10 00:30:55 +0100
committerGitHub2018-06-10 00:30:55 +0100
commitd82642305dbcf53262ff41705a41c6e7c1591161 (patch)
treeb2bbe8c0aadaec16280f020e55eb55955be43d3f /src/main/game/global_cache.h
parentMerge pull request #58 from thecharlesblake/fin (diff)
parentFinish refactoring game state class (diff)
downloadmetasol-d82642305dbcf53262ff41705a41c6e7c1591161.tar.gz
metasol-d82642305dbcf53262ff41705a41c6e7c1591161.zip

Merge pull request #59 from thecharlesblake/paper-tidy-up

Paper tidy up

Diffstat (limited to 'src/main/game/global_cache.h')
-rw-r--r--src/main/game/global_cache.h15
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;