mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix status macros
This commit is contained in:
parent
e065ee239e
commit
5bd4cfcf59
@ -60,10 +60,10 @@
|
||||
// - Status macro functions ---------------------------------------------------
|
||||
// These macros provide the same functionality as the functions in the status
|
||||
// component, but are slightly faster (because most are just object variables)
|
||||
#define GET_PAIN_TOTAL(unit) (unit getVariable [QEGVAR(status,pain), 0])
|
||||
#define GET_PAIN_PERCEIVED(unit) ([unit] call EFUNC(status,getPainPerceived)) // Just for consistency
|
||||
#define GET_HEART_RATE(unit) (unit getVariable [QEGVAR(status,heartRate), DEFAULT_HEART_RATE])
|
||||
#define GET_BLOOD_VOLUME(unit) (unit getVariable [QEGVAR(status,bloodVolume), DEFAULT_BLOOD_VOLUME])
|
||||
#define GET_BLOOD_LOSS(unit) ([unit] call EFUNC(status,getBloodLoss)) // Just for consistency
|
||||
#define IS_UNCONSCIOUS(unit) (unit getVariable [QEGVAR(status,isUnconscious), false])
|
||||
#define GET_PAIN_TOTAL(unit) (unit getVariable [QEGVAR(medical_status,pain), 0])
|
||||
#define GET_PAIN_PERCEIVED(unit) ([unit] call EFUNC(medical_status,getPainPerceived)) // Just for consistency
|
||||
#define GET_HEART_RATE(unit) (unit getVariable [QEGVAR(medical_status,heartRate), DEFAULT_HEART_RATE])
|
||||
#define GET_BLOOD_VOLUME(unit) (unit getVariable [QEGVAR(medical_status,bloodVolume), DEFAULT_BLOOD_VOLUME])
|
||||
#define GET_BLOOD_LOSS(unit) ([unit] call EFUNC(medical_status,getBloodLoss)) // Just for consistency
|
||||
#define IS_UNCONSCIOUS(unit) (unit getVariable [QEGVAR(medical_status,isUnconscious), false])
|
||||
#define IS_IN_PAIN(unit) (GET_PAIN_PERCEIVED(unit) > 0)
|
||||
|
Loading…
Reference in New Issue
Block a user