summaryrefslogtreecommitdiffstats
path: root/src/DamageManager.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2019-06-30 23:15:34 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2019-06-30 23:15:34 +0200
commit02c7cbc75f0451e87bff0a9d5469fe057432769c (patch)
treeb84cf4ab2a5f41f055c6b91771e67b356b357675 /src/DamageManager.h
parentChanged CReplay::Display slightly (diff)
downloadre3-02c7cbc75f0451e87bff0a9d5469fe057432769c.tar
re3-02c7cbc75f0451e87bff0a9d5469fe057432769c.tar.gz
re3-02c7cbc75f0451e87bff0a9d5469fe057432769c.tar.bz2
re3-02c7cbc75f0451e87bff0a9d5469fe057432769c.tar.lz
re3-02c7cbc75f0451e87bff0a9d5469fe057432769c.tar.xz
re3-02c7cbc75f0451e87bff0a9d5469fe057432769c.tar.zst
re3-02c7cbc75f0451e87bff0a9d5469fe057432769c.zip
Diffstat (limited to 'src/DamageManager.h')
-rw-r--r--src/DamageManager.h25
1 files changed, 24 insertions, 1 deletions
diff --git a/src/DamageManager.h b/src/DamageManager.h
index 01269a42..4c1e3925 100644
--- a/src/DamageManager.h
+++ b/src/DamageManager.h
@@ -15,12 +15,35 @@ public:
CAR_DOOR_RR
};
+ enum {
+ PANEL_FL = 0,
+ PANEL_FR,
+ PANEL_RL,
+ PANEL_RR,
+ PANEL_WINDSHIELD,
+ PANEL_FRONT,
+ PANEL_BACK
+ };
+
+ struct PanelStatus {
+ uint32 m_nPanelFrontLeftStatus : 4;
+ uint32 m_nPanelFrontRightStatus : 4;
+ uint32 m_nPanelBackLeftStatus : 4;
+ uint32 m_nPanelBackRightStatus : 4;
+ uint32 m_nWindshieldStatus : 4;
+ uint32 m_nPanelFrontStatus : 4;
+ uint32 m_nPanelBackStatus : 4;
+ };
+
float field_0;
char m_bEngineStatus;
char m_bWheelStatus[4];
char m_bDoorStatus[7];
uint32 m_abLightStatus;
- uint32 m_abPanelsStatus;
+ union{
+ PanelStatus m_sPanelsStatus;
+ uint32 m_abPanelsStatus;
+ };
char field_24;
char field_25;
char field_26;