PuzzleSolver/Source/header/input.h
Raphael Maenle 86c4e26bc7 improved random generator, made information call from Part more direct
todo: add indexing to puzzlepieces and all four rotation into puzzlebox (or maybe only log?). this needs to be done for random algorithm and for realPuzzle
2017-12-21 13:07:01 +01:00

56 lines
1.0 KiB
C++
Executable File

//
// Created by mpapa on 05.12.2017.
//
#pragma once
#include <cstdint>
#include "../functions/AbstractionLayers/Layer1/AbstractionLayer_1_Properties.h"
#include "../functions/AbstractionLayers/DestructionPower/DestructionPower_Properties.h"
class LayerContainer;
class Part
{
public:
Part() : m_partID(0), m_numOfRotations(0)
{}
~Part() = default;
int32_t GetPartID () const
{
return m_partID;
}
void SetPartID(const int32_t partID)
{
m_partID = partID;
}
uint8_t GetNumOfRotations () const
{
return m_numOfRotations;
}
void SetNumOfRotations(const uint8_t numOfRotations)
{
m_numOfRotations = numOfRotations;
}
AbstractionLayer_1_Properties m_test1;
DestructionPower_Properties m_destruction;
private:
int32_t m_partID;
uint8_t m_numOfRotations;
};
class coor
{
public:
unsigned int col, row;
coor (unsigned int newcol,unsigned int newrow): col(newcol), row(newrow)
{}
};