ACE3/extensions/medical/handleDamage.h
2015-05-16 23:19:50 +02:00

80 lines
2.1 KiB
C++

#pragma once
#include <string>
#include <vector>
#include <memory>
namespace ace {
namespace medical {
namespace injuries {
class DamageType;
class InjuryType;
class OpenWound;
}
class handleDamage
{
public:
/**
*
*/
static handleDamage& GetInstance();
~handleDamage();
/**
*
*/
std::string HandleDamageWounds(const std::string& selectionName, double amountOfDamage, const std::string& typeOfDamage, int woundID);
std::vector<ace::medical::injuries::OpenWound> GetInjuryInfoFor(const std::string& typeOfDamage, double amountOfDamage, int selection, int woundID);
/**
*
*/
std::string AddDamageType(const std::vector<std::string>& sqfDamageTypeDefinition);
/**
*
*/
std::string AddInjuryType(const std::vector<std::string>& sqfInjuryDefinition);
/**
*
*/
//static std::string SetInjuryTypeData(const std::string& data);
/**
*
*/
int SelectionToNumber(const std::string& selectionName);
/**
*
*/
//static std::vector<std::shared_ptr<ace::medical::injuries::InjuryType>> GetInjuryInfoFor(const std::string& damageType);
/**
*
*/
std::string FinalizeDefinitions();
private:
handleDamage();
handleDamage(handleDamage const&) = delete;
void operator=(handleDamage const&) = delete;
std::vector<std::string> inputToVector(const std::string& input);
std::vector<double> inputToVectorDouble(const std::string& input);
std::vector<std::shared_ptr<ace::medical::injuries::DamageType>> damageTypes;
std::vector<std::shared_ptr<ace::medical::injuries::InjuryType>> injuryTypes;
std::vector<std::string> selections;
std::vector<std::string> hitPoints;
};
}
}