Some restructring: added crossbasetypes.hpp
This commit is contained in:
24
src/crossbasetypes.hpp
Normal file
24
src/crossbasetypes.hpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef CROSSBASETYPES_HPP
|
||||
#define CROSSBASETYPES_HPP
|
||||
|
||||
#include <set>
|
||||
#include <vector>
|
||||
#include <cstdint>
|
||||
|
||||
typedef std::map<wxString,wxString> DictType;
|
||||
typedef std::vector< std::vector<wxChar> > GridType;
|
||||
typedef std::vector< std::vector<wxChar> > CurGridType;
|
||||
// Fisrt index is a word length
|
||||
typedef std::vector< std::vector<wxString> > AllWordsType;
|
||||
typedef std::set< uint32_t > UsedWords;
|
||||
|
||||
struct WordInfo {
|
||||
size_t x;
|
||||
size_t y;
|
||||
size_t len;
|
||||
size_t ind;
|
||||
//true for vertical and false for horisontal
|
||||
bool direct;
|
||||
};
|
||||
|
||||
#endif // CROSSBASETYPES_HPP
|
||||
@@ -6,21 +6,7 @@
|
||||
|
||||
#include <wx/wx.h>
|
||||
|
||||
typedef std::map<wxString,wxString> DictType;
|
||||
typedef std::vector< std::vector<wxChar> > GridType;
|
||||
typedef std::vector< std::vector<wxChar> > CurGridType;
|
||||
// Fisrt index is a word length
|
||||
typedef std::vector< std::vector<wxString> > AllWordsType;
|
||||
typedef std::set< uint32_t > UsedWords;
|
||||
|
||||
struct WordInfo {
|
||||
size_t x;
|
||||
size_t y;
|
||||
size_t len;
|
||||
size_t ind;
|
||||
//true for vertical and false for horisontal
|
||||
bool direct;
|
||||
};
|
||||
#include "crossbasetypes.hpp"
|
||||
|
||||
const wxChar CELL_CLEAR = wxT('+');
|
||||
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
</VirtualDirectory>
|
||||
<VirtualDirectory Name="Shared">
|
||||
<File Name="../src/crossgen.hpp"/>
|
||||
<File Name="../src/crossbasetypes.hpp"/>
|
||||
</VirtualDirectory>
|
||||
<Settings Type="Executable">
|
||||
<GlobalSettings>
|
||||
|
||||
Reference in New Issue
Block a user