2020-04-09 20:50:24 +02:00
|
|
|
#pragma once
|
|
|
|
|
2020-05-31 19:59:01 +02:00
|
|
|
class CAutomobile;
|
|
|
|
|
2020-04-09 20:50:24 +02:00
|
|
|
class CGameLogic
|
|
|
|
{
|
|
|
|
public:
|
2020-05-31 19:59:01 +02:00
|
|
|
enum {
|
|
|
|
SHORTCUT_NONE = 0,
|
|
|
|
SHORTCUT_INIT,
|
|
|
|
SHORTCUT_IDLE,
|
|
|
|
SHORTCUT_GETTING_IN,
|
|
|
|
SHORTCUT_TRANSITION,
|
|
|
|
SHORTCUT_ARRIVING,
|
|
|
|
SHORTCUT_GETTING_OUT
|
|
|
|
};
|
|
|
|
|
2020-04-09 20:50:24 +02:00
|
|
|
static void InitAtStartOfGame();
|
|
|
|
static void PassTime(uint32 time);
|
|
|
|
static void SortOutStreamingAndMemory(const CVector &pos);
|
|
|
|
static void Update();
|
|
|
|
static void RestorePlayerStuffDuringResurrection(class CPlayerPed *pPlayerPed, CVector pos, float angle);
|
|
|
|
|
2020-05-31 19:59:01 +02:00
|
|
|
static void ClearShortCut();
|
|
|
|
static void SetUpShortCut(CVector, float, CVector, float);
|
|
|
|
static void AbandonShortCutIfTaxiHasBeenMessedWith();
|
|
|
|
static void AbandonShortCutIfPlayerMilesAway();
|
|
|
|
static void UpdateShortCut();
|
|
|
|
static void AddShortCutPointAfterDeath(CVector, float);
|
|
|
|
static void AddShortCutDropOffPointForMission(CVector, float);
|
|
|
|
static void RemoveShortCutDropOffPointForMission();
|
|
|
|
static void AfterDeathArrestSetUpShortCutTaxi();
|
|
|
|
|
|
|
|
static void Save(uint8*, uint32*);
|
|
|
|
static void Load(uint8*, uint32);
|
|
|
|
|
2020-04-09 20:50:24 +02:00
|
|
|
static uint8 ActivePlayers;
|
2020-05-31 19:59:01 +02:00
|
|
|
static uint8 ShortCutState;
|
|
|
|
static CAutomobile* pShortCutTaxi;
|
|
|
|
static uint32 NumAfterDeathStartPoints;
|
|
|
|
static CVector ShortCutStart;
|
|
|
|
static float ShortCutStartOrientation;
|
|
|
|
static CVector ShortCutDestination;
|
|
|
|
static float ShortCutDestinationOrientation;
|
|
|
|
static uint32 ShortCutTimer;
|
|
|
|
static CVector AfterDeathStartPoints[NUM_SHORTCUT_START_POINTS];
|
|
|
|
static float AfterDeathStartPointOrientation[NUM_SHORTCUT_START_POINTS];
|
|
|
|
static CVector ShortCutDropOffForMission;
|
|
|
|
static float ShortCutDropOffOrientationForMission;
|
|
|
|
static bool MissionDropOffReadyToBeUsed;
|
2019-10-07 23:29:30 +02:00
|
|
|
};
|