summaryrefslogtreecommitdiffstats
path: root/src/peds
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-02-16 21:08:54 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-02-16 21:08:54 +0100
commit1337a9b6034570861a7cadaf5338d0cbb5b06255 (patch)
treedc65656c184c0060f053d0f0ea45a8125628e9cd /src/peds
parentreview fixes (diff)
downloadre3-1337a9b6034570861a7cadaf5338d0cbb5b06255.tar
re3-1337a9b6034570861a7cadaf5338d0cbb5b06255.tar.gz
re3-1337a9b6034570861a7cadaf5338d0cbb5b06255.tar.bz2
re3-1337a9b6034570861a7cadaf5338d0cbb5b06255.tar.lz
re3-1337a9b6034570861a7cadaf5338d0cbb5b06255.tar.xz
re3-1337a9b6034570861a7cadaf5338d0cbb5b06255.tar.zst
re3-1337a9b6034570861a7cadaf5338d0cbb5b06255.zip
Diffstat (limited to 'src/peds')
-rw-r--r--src/peds/PedType.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/peds/PedType.h b/src/peds/PedType.h
index 9d284318..797344ab 100644
--- a/src/peds/PedType.h
+++ b/src/peds/PedType.h
@@ -85,6 +85,9 @@ public:
static uint32 GetFlag(int type) { return ms_apPedType[type]->m_flag; }
static uint32 GetAvoid(int type) { return ms_apPedType[type]->m_avoid; }
static uint32 GetThreats(int type) { return ms_apPedType[type]->m_threats; }
+ static void AddThreat(int type, int threat) { ms_apPedType[type]->m_threats |= threat; }
+ static void RemoveThreat(int type, int threat) { ms_apPedType[type]->m_threats &= ~threat; }
+ static bool IsThreat(int type, int threat) { return ms_apPedType[type]->m_threats & threat; }
};
static_assert(sizeof(CPedType) == 0x20, "CPedType: error");