furthered structure.cpp with code segments. edited log class in solve.h

This commit is contained in:
2017-11-18 22:48:40 +01:00
parent 85da2a4def
commit c308b6d9e8
3 changed files with 98 additions and 29 deletions

View File

@ -36,6 +36,7 @@ private:
unsigned int shifts;
unsigned int boxidentifier;
unsigned int identifier;
static unsigned int idcount;
};
@ -126,8 +127,7 @@ class coor
{
public:
int m, n;
coor():m(-1),n(-1){}
coor(int newm,int newn): m(newm), n(newn)
coor(int newm=-1,int newn=-1): m(newm), n(newn)
{}
};
@ -135,14 +135,14 @@ class LogEntry
{
public:
vector<PuzzlePiece*> PieceCollector;
vector<coor> CoorCollector;
int abstractionLevel;
coor myCoor;
PuzzlePiece* myPuzzlePiece;
void advance(){abstractionLevel++;}
LogEntry()
{
myCoor();
abstractionLevel=0;
}
private: