summaryrefslogtreecommitdiffstats
path: root/src/control/Bridge.h
diff options
context:
space:
mode:
author_AG <gennariarmando@outlook.com>2019-07-07 09:21:44 +0200
committerGitHub <noreply@github.com>2019-07-07 09:21:44 +0200
commit0ac6d0515e1ba703da2c0f742d91e7b550feac06 (patch)
tree2a5b1fc5511841acb443636b5a9b560d7aca5f2b /src/control/Bridge.h
parentLil update. (diff)
parentsome work on vehicles (diff)
downloadre3-0ac6d0515e1ba703da2c0f742d91e7b550feac06.tar
re3-0ac6d0515e1ba703da2c0f742d91e7b550feac06.tar.gz
re3-0ac6d0515e1ba703da2c0f742d91e7b550feac06.tar.bz2
re3-0ac6d0515e1ba703da2c0f742d91e7b550feac06.tar.lz
re3-0ac6d0515e1ba703da2c0f742d91e7b550feac06.tar.xz
re3-0ac6d0515e1ba703da2c0f742d91e7b550feac06.tar.zst
re3-0ac6d0515e1ba703da2c0f742d91e7b550feac06.zip
Diffstat (limited to 'src/control/Bridge.h')
-rw-r--r--src/control/Bridge.h25
1 files changed, 24 insertions, 1 deletions
diff --git a/src/control/Bridge.h b/src/control/Bridge.h
index 64b85c1d..52c85322 100644
--- a/src/control/Bridge.h
+++ b/src/control/Bridge.h
@@ -1,7 +1,30 @@
#pragma once
+#include "Entity.h"
class CBridge
{
+private:
+ enum bridgeStates
+ {
+ STATE_BRIDGE_LOCKED,
+ STATE_LIFT_PART_IS_UP,
+ STATE_LIFT_PART_MOVING_DOWN,
+ STATE_LIFT_PART_IS_DOWN,
+ STATE_LIFT_PART_ABOUT_TO_MOVE_UP,
+ STATE_LIFT_PART_MOVING_UP
+ };
+
+
+ static CEntity *&pLiftRoad, *&pLiftPart, *&pWeight;
+ static int &State, &OldState;
+ static float &DefaultZLiftPart, &DefaultZLiftRoad, &DefaultZLiftWeight;
+ static float& OldLift;
+ static uint32& TimeOfBridgeBecomingOperational;
+
public:
- static bool ShouldLightsBeFlashing(void);
+ static void Init();
+ static void Update();
+ static bool ShouldLightsBeFlashing();
+ static void FindBridgeEntities();
+ static bool ThisIsABridgeObjectMovingUp(int);
};