2015-05-03 22:02:39 +00:00
|
|
|
#include "OpenWound.h"
|
|
|
|
#include <sstream>
|
|
|
|
|
2015-05-16 21:18:58 +00:00
|
|
|
ace::medical::injuries::OpenWound::OpenWound(int anID, int aClassID, int aBodyPartId, double aPercentage, double aBl, double painAmount) :
|
|
|
|
woundID(anID), classID(aClassID), bodyPart(aBodyPartId), percentage(aPercentage), bloodlossRate(aBl), pain(painAmount)
|
2015-05-03 22:02:39 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2015-05-14 15:36:58 +00:00
|
|
|
ace::medical::injuries::OpenWound::~OpenWound()
|
2015-05-03 22:02:39 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2015-05-14 15:36:58 +00:00
|
|
|
std::string ace::medical::injuries::OpenWound::AsString()
|
2015-05-03 22:02:39 +00:00
|
|
|
{
|
2015-05-03 22:32:44 +00:00
|
|
|
std::stringstream stream;
|
2015-05-16 21:18:58 +00:00
|
|
|
stream << "[" << woundID << "," << classID << "," << bodyPart << "," << 1 << "," << bloodlossRate << "]";
|
2015-05-03 22:32:44 +00:00
|
|
|
return stream.str();
|
2015-05-03 22:02:39 +00:00
|
|
|
}
|