2019-06-30 21:06:55 +02:00
|
|
|
#pragma once
|
2020-03-28 15:47:52 +01:00
|
|
|
|
|
|
|
class CEntity;
|
2019-06-30 21:06:55 +02:00
|
|
|
|
2019-08-02 17:43:40 +02:00
|
|
|
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
|
|
|
|
};
|
|
|
|
|
2019-06-30 21:06:55 +02:00
|
|
|
class CBridge
|
|
|
|
{
|
2019-08-02 17:43:40 +02:00
|
|
|
public:
|
2020-04-16 21:19:56 +02:00
|
|
|
static CEntity *pLiftRoad, *pLiftPart, *pWeight;
|
|
|
|
static int State, OldState;
|
|
|
|
static float DefaultZLiftPart, DefaultZLiftRoad, DefaultZLiftWeight;
|
|
|
|
static float OldLift;
|
|
|
|
static uint32 TimeOfBridgeBecomingOperational;
|
2019-07-04 13:04:34 +02:00
|
|
|
|
|
|
|
static void Init();
|
|
|
|
static void Update();
|
|
|
|
static bool ShouldLightsBeFlashing();
|
|
|
|
static void FindBridgeEntities();
|
|
|
|
static bool ThisIsABridgeObjectMovingUp(int);
|
2019-06-30 21:06:55 +02:00
|
|
|
};
|