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 30 31 32 33 34 35 36 37
|
//-----------------------------------------------------------------------------
/** @file libpentobi_base/PentobiTreeWriter.h
@author Markus Enzenberger
@copyright GNU General Public License version 3 or later */
//-----------------------------------------------------------------------------
#ifndef LIBPENTOBI_BASE_PENTOBI_TREE_WRITER_H
#define LIBPENTOBI_BASE_PENTOBI_TREE_WRITER_H
#include "PentobiTree.h"
#include "libboardgame_base/TreeWriter.h"
namespace libpentobi_base {
//-----------------------------------------------------------------------------
/** Blokus-specific tree writer.
Automatically replaces obsolete move properties as used by early versions
of Pentobi. */
class PentobiTreeWriter
: public libboardgame_base::TreeWriter
{
public:
PentobiTreeWriter(ostream& out, const PentobiTree& tree);
void write_property(const string& id,
const vector<string>& values) override;
private:
Variant m_variant;
};
//-----------------------------------------------------------------------------
} // namespace libpentobi_base
#endif // LIBPENTOBI_BASE_PENTOBI_TREE_WRITER_H
|