From b334d8c52eb0ba1f740a5ecf04aeb485d7fe3dc9 Mon Sep 17 00:00:00 2001 From: Glowbal Date: Sat, 16 May 2015 23:18:58 +0200 Subject: [PATCH] Added woundID for open wounds --- extensions/medical/OpenWound.cpp | 6 +++--- extensions/medical/OpenWound.h | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/extensions/medical/OpenWound.cpp b/extensions/medical/OpenWound.cpp index 62eadfdfe9..340955aac6 100644 --- a/extensions/medical/OpenWound.cpp +++ b/extensions/medical/OpenWound.cpp @@ -1,8 +1,8 @@ #include "OpenWound.h" #include -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) +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) { } @@ -13,6 +13,6 @@ ace::medical::injuries::OpenWound::~OpenWound() std::string ace::medical::injuries::OpenWound::AsString() { std::stringstream stream; - stream << classID << "," << bodyPart << "," << 1 << "," << bloodlossRate; + stream << "[" << woundID << "," << classID << "," << bodyPart << "," << 1 << "," << bloodlossRate << "]"; return stream.str(); } diff --git a/extensions/medical/OpenWound.h b/extensions/medical/OpenWound.h index 00e6c1fe7a..4de796d5f9 100644 --- a/extensions/medical/OpenWound.h +++ b/extensions/medical/OpenWound.h @@ -8,11 +8,12 @@ namespace ace { class OpenWound { 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(); std::string AsString(); + int woundID; int classID; int percentage; double bodyPart;