summaryrefslogtreecommitdiffstats
path: root/src/control/PedStats.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-06-19 18:35:51 +0200
committeraap <aap@papnet.eu>2019-06-19 18:35:51 +0200
commit2ec11b000db3af4cb5cd9a5d70dd050edfbdc99f (patch)
tree4bb63db3c36f43ae63e1560d19d36ccb46ed37ac /src/control/PedStats.h
parentimplemented CPedStats (diff)
downloadre3-2ec11b000db3af4cb5cd9a5d70dd050edfbdc99f.tar
re3-2ec11b000db3af4cb5cd9a5d70dd050edfbdc99f.tar.gz
re3-2ec11b000db3af4cb5cd9a5d70dd050edfbdc99f.tar.bz2
re3-2ec11b000db3af4cb5cd9a5d70dd050edfbdc99f.tar.lz
re3-2ec11b000db3af4cb5cd9a5d70dd050edfbdc99f.tar.xz
re3-2ec11b000db3af4cb5cd9a5d70dd050edfbdc99f.tar.zst
re3-2ec11b000db3af4cb5cd9a5d70dd050edfbdc99f.zip
Diffstat (limited to 'src/control/PedStats.h')
-rw-r--r--src/control/PedStats.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/control/PedStats.h b/src/control/PedStats.h
index 6b53ea37..78414341 100644
--- a/src/control/PedStats.h
+++ b/src/control/PedStats.h
@@ -54,8 +54,11 @@ enum
STAT_GUN_PANIC = 0x80
};
-struct CPedStat
+class CPedStats
{
+ static CPedStats *(&ms_apPedStats)[NUM_PEDSTATS];
+
+public:
ePedStats m_type;
char m_name[24];
float m_fleeDistance;
@@ -67,16 +70,10 @@ struct CPedStat
float m_attackStrength;
float m_defendWeakness;
int16 m_flags;
-};
-static_assert(sizeof(CPedStat) == 0x34, "CPedStat: error");
-class CPedStats
-{
- static CPedStat *(&ms_apPedStats)[NUM_PEDSTATS];
-
-public:
static void Initialise(void);
static void Shutdown(void);
static void LoadPedStats(void);
static int32 GetPedStatType(char *name);
};
+static_assert(sizeof(CPedStats) == 0x34, "CPedStats: error");