mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Added woundID for open wounds
This commit is contained in:
parent
eb2383a6f0
commit
b334d8c52e
@ -1,8 +1,8 @@
|
|||||||
#include "OpenWound.h"
|
#include "OpenWound.h"
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
ace::medical::injuries::OpenWound::OpenWound(int aClassID, int aBodyPartId, double aPercentage, double aBl, double painAmount) :
|
ace::medical::injuries::OpenWound::OpenWound(int anID, int aClassID, int aBodyPartId, double aPercentage, double aBl, double painAmount) :
|
||||||
classID(aClassID), bodyPart(aBodyPartId), percentage(aPercentage), bloodlossRate(aBl), pain(painAmount)
|
woundID(anID), classID(aClassID), bodyPart(aBodyPartId), percentage(aPercentage), bloodlossRate(aBl), pain(painAmount)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -13,6 +13,6 @@ ace::medical::injuries::OpenWound::~OpenWound()
|
|||||||
std::string ace::medical::injuries::OpenWound::AsString()
|
std::string ace::medical::injuries::OpenWound::AsString()
|
||||||
{
|
{
|
||||||
std::stringstream stream;
|
std::stringstream stream;
|
||||||
stream << classID << "," << bodyPart << "," << 1 << "," << bloodlossRate;
|
stream << "[" << woundID << "," << classID << "," << bodyPart << "," << 1 << "," << bloodlossRate << "]";
|
||||||
return stream.str();
|
return stream.str();
|
||||||
}
|
}
|
||||||
|
@ -8,11 +8,12 @@ namespace ace {
|
|||||||
class OpenWound
|
class OpenWound
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
OpenWound(int aClassID, int aBodyPartId, double aPercentage, double aBl, double painAmount);
|
OpenWound(int anID, int aClassID, int aBodyPartId, double aPercentage, double aBl, double painAmount);
|
||||||
~OpenWound();
|
~OpenWound();
|
||||||
|
|
||||||
std::string AsString();
|
std::string AsString();
|
||||||
|
|
||||||
|
int woundID;
|
||||||
int classID;
|
int classID;
|
||||||
int percentage;
|
int percentage;
|
||||||
double bodyPart;
|
double bodyPart;
|
||||||
|
Loading…
Reference in New Issue
Block a user