2015-05-03 22:02:39 +00:00
|
|
|
#include "OpenWound.h"
|
|
|
|
#include <sstream>
|
|
|
|
|
2015-05-14 16:52:12 +00:00
|
|
|
ace::medical::injuries::OpenWound::OpenWound(int aClassID, int aBodyPartId, double aPercentage, double aBl, double painAmount) :
|
|
|
|
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;
|
|
|
|
stream << classID << "," << bodyPart << "," << 1 << "," << bloodlossRate;
|
|
|
|
return stream.str();
|
2015-05-03 22:02:39 +00:00
|
|
|
}
|