blob: ae631825a2cfc2ad131f5c2afac1a3dfcb4be411 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
|