diff options
author | guard3 <cblsss2011@hotmail.com> | 2019-07-04 14:04:34 +0300 |
---|---|---|
committer | guard3 <cblsss2011@hotmail.com> | 2019-07-06 01:51:32 +0300 |
commit | 88ce335afc1af81222109e922ef03051a5273dd7 (patch) | |
tree | 07091c5c2794569add7cb60c167a7936264f79b7 /src/control/Bridge.h | |
parent | 49d97f0033c4406a359cba88e988c7311241a76a (diff) |
CBridge
Diffstat (limited to 'src/control/Bridge.h')
-rw-r--r-- | src/control/Bridge.h | 25 |
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); }; |