aboutsummaryrefslogtreecommitdiff
path: root/src/main/input-output/deal_parser.cpp
diff options
context:
space:
mode:
authorthecharlesblake2018-01-03 12:39:06 +0000
committerthecharlesblake2018-01-03 12:39:06 +0000
commitfa40f6facc5c500cae8bf890e66a7bf5d490387e (patch)
tree9b3202e433e5151a38f78084ee843b20edec4f89 /src/main/input-output/deal_parser.cpp
parentMajor refactor, putting pile logic into game_state (diff)
downloadmetasol-fa40f6facc5c500cae8bf890e66a7bf5d490387e.tar.gz
metasol-fa40f6facc5c500cae8bf890e66a7bf5d490387e.zip

Rename util to json_helper

Diffstat (limited to 'src/main/input-output/deal_parser.cpp')
-rw-r--r--src/main/input-output/deal_parser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/input-output/deal_parser.cpp b/src/main/input-output/deal_parser.cpp
index c876e91..8637649 100644
--- a/src/main/input-output/deal_parser.cpp
+++ b/src/main/input-output/deal_parser.cpp
@@ -4,7 +4,7 @@
#include "deal_parser.h"
#include "../game/game_state.h"
-#include "../util/util.h"
+#include "json_helper.h"
using namespace std;
using namespace rapidjson;
@@ -35,7 +35,7 @@ void deal_parser::parse_tableau_piles(game_state &gs, const rapidjson::Document&
assert(json_tab_piles.IsArray());
if (gs.tableau_piles.size() != gs.rules.tableau_pile_count) {
- util::json_parse_err("Incorrect number of tableau piles");
+ json_helper::json_parse_err("Incorrect number of tableau piles");
}
for (auto p = std::make_pair(begin(json_tab_piles.GetArray()), begin(gs.tableau_piles));
@@ -67,7 +67,7 @@ void deal_parser::parse_cells(game_state &gs, const Document& doc) {
if (json_cell_arr.Empty()) return;
else if (gs.rules.cells != json_cell_arr.Size()) {
- util::json_parse_err("Incorrect number of cells");
+ json_helper::json_parse_err("Incorrect number of cells");
}
for (auto p = std::make_pair(begin(json_cell_arr), begin(gs.cells));