NON FINAL: added dp calculation and most of RW code, included david code

still not runable code as dispatcher functions are only placeholders!
This commit is contained in:
Raphael Maenle
2017-12-23 21:46:41 +01:00
parent 7c5cfc8c6b
commit caa74198bd
3 changed files with 54 additions and 41 deletions

View File

@ -25,5 +25,8 @@ public:
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:
};

View File

@ -14,13 +14,13 @@ class DestructionPower_Properties
{
public:
explicit DestructionPower_Properties();
map<int,float> getSpeedTable() {return SpeedTable;}
void setSpeedTable();
static map<int,float> SpeedTable;
vector<float> DestructionArray;
private:
static map<int,float> SpeedTable;
vector<float> DestructionArray;
friend class DestructionPower;
};