2017-12-20 22:05:04 +01:00
|
|
|
//
|
|
|
|
// Created by mpapa on 05.12.2017.
|
|
|
|
//
|
|
|
|
|
2017-12-20 22:10:08 +01:00
|
|
|
#ifndef SOURCE_DESTRUCTIONPOWER_PROPERTIES_H
|
|
|
|
#define SOURCE_DESTRUCTIONPOWER_PROPERTIES_H
|
2017-12-20 22:05:04 +01:00
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "DestructionPower.h"
|
|
|
|
|
|
|
|
class DestructionPower_Properties
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
DestructionPower_Properties()
|
|
|
|
{
|
2017-12-20 23:01:04 +01:00
|
|
|
for(int i=0;i<sizeof(DestructionArray);i++)
|
|
|
|
DestructionArray[i]=(SpeedTable[i]*DESTRUCTION_INIT);
|
|
|
|
|
|
|
|
setSpeedTable();
|
2017-12-20 22:05:04 +01:00
|
|
|
|
|
|
|
}
|
2017-12-20 23:01:04 +01:00
|
|
|
map<int,float> getSpeedTable()
|
|
|
|
{
|
|
|
|
return SpeedTable;
|
|
|
|
}
|
|
|
|
void setSpeedTable()
|
|
|
|
{ SpeedTable=create_SpeedTable();}
|
|
|
|
|
2017-12-20 22:05:04 +01:00
|
|
|
private:
|
2017-12-20 23:01:04 +01:00
|
|
|
|
|
|
|
static map<int,float> create_SpeedTable();
|
|
|
|
static map<int,float> SpeedTable;
|
|
|
|
|
2017-12-20 22:05:04 +01:00
|
|
|
float DestructionArray[DESTRUCTION_COUNT];
|
2017-12-20 23:01:04 +01:00
|
|
|
|
2017-12-20 22:05:04 +01:00
|
|
|
friend class DestructionPower;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2017-12-20 23:01:04 +01:00
|
|
|
map<int,float> DestructionPower_Properties::create_SpeedTable()
|
|
|
|
{
|
|
|
|
map<int, float> m;
|
|
|
|
m[1] = 0.001;
|
|
|
|
return m;
|
|
|
|
}
|
2017-12-20 22:05:04 +01:00
|
|
|
|
2017-12-20 22:58:00 +01:00
|
|
|
#endif //SOURCE_DESTRUCTIONPOWER_PROPERTIES_H
|