You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#pragma once
|
|
|
|
#include <iostream>
|
|
|
|
#include <fstream>
|
|
|
|
#include <sstream>
|
|
|
|
#include <experimental/filesystem>
|
|
|
|
#include <vector>
|
|
|
|
#include <SFML/Graphics.hpp>
|
|
|
|
#include <cstring>
|
|
|
|
struct pattern_info {
|
|
|
|
|
|
|
|
std::string title;
|
|
|
|
std::string author;
|
|
|
|
std::string comments;
|
|
|
|
sf::Vector2i dimensions;
|
|
|
|
|
|
|
|
char *nodes;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
class Decoder {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
Decoder();
|
|
|
|
~Decoder();
|
|
|
|
|
|
|
|
pattern_info decodePattern(std::string pattern);
|
|
|
|
std::vector<const char*> getPatternList();
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
std::vector<const char*> pattern_list;
|
|
|
|
|
|
|
|
|
|
|
|
};
|