882737bd30
Die Bilder sind in einem Ordner über dem Github abgespeichert, sieht man eh wohin die PATH zeigt. Bilder werden die "WORKING PIECES" verwendet.
34 lines
1.0 KiB
C++
34 lines
1.0 KiB
C++
//
|
|
// Created by mpapa on 05.12.2017.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#define DESTRUCTION_COUNT 1
|
|
|
|
#include "DestructionPower_Properties.h"
|
|
#include "../AbstraktionLayer_Base.h"
|
|
|
|
#include <vector>
|
|
#include <iostream>
|
|
#include <bitset>
|
|
#include <random>
|
|
|
|
class DestructionPower : public AbstractionLayer_Base<DestructionPower_Properties>
|
|
{
|
|
public:
|
|
bool PreProcessing(coor mySize,const vector<Part*>* partArray)override;
|
|
bool EvaluateQuality (coor constraintCoordinate, qualityVector& qVector) override;
|
|
bool SetConstraintOnPosition(coor constraintCoordinate, DestructionPower_Properties constraint);
|
|
bool RemoveConstraintOnPosition(coor constraintCoordinate)override;
|
|
|
|
void DestructionOfSurrounding(coor constraintCoordinate);
|
|
int getNextAbstractionLayer(coor newCoordinate, int currentAbstractionLayer);
|
|
|
|
void setDestructionPower(coor myCoor, int AbstractionLevel, float destructionPower)
|
|
{ m_constraintMatrix[myCoor.col][myCoor.row].DestructionArray[AbstractionLevel] = destructionPower;}
|
|
|
|
private:
|
|
float defaultDestructionPower(int i);
|
|
};
|