aboutsummaryrefslogtreecommitdiff
path: root/src/main/input-output/output/state_printer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/input-output/output/state_printer.h')
-rw-r--r--src/main/input-output/output/state_printer.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/main/input-output/output/state_printer.h b/src/main/input-output/output/state_printer.h
new file mode 100644
index 0000000..ae63182
--- /dev/null
+++ b/src/main/input-output/output/state_printer.h
@@ -0,0 +1,29 @@
+//
+// Created by thecharlesblake on 1/3/18.
+//
+
+#ifndef SOLVITAIRE_STATE_PRINT_H
+#define SOLVITAIRE_STATE_PRINT_H
+
+#include <ostream>
+
+#include "../../game/game_state.h"
+
+class state_printer {
+public:
+ static std::ostream& print(std::ostream&, const game_state&);
+
+private:
+ static void print_header(std::ostream&, const char*);
+ static void print_piles(std::ostream&,
+ const std::vector<game_state::pile_ref>&,
+ const game_state&);
+ static void print_top_of_piles(std::ostream&,
+ const std::vector<game_state::pile_ref>&,
+ const game_state&);
+ static void print_top_of_pile(std::ostream&, game_state::pile_ref,
+ const game_state&);
+ static void print_card(std::ostream&, card);
+};
+
+#endif //SOLVITAIRE_STATE_PRINT_H