summaryrefslogtreecommitdiffstats
path: root/src/control/GameLogic.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-06-01 10:44:33 +0200
committerGitHub <noreply@github.com>2020-06-01 10:44:33 +0200
commit6d3e54369ce9ac826ab7c74da4be1c15d3ff3df0 (patch)
tree5f09d5f4358b1518262068d65ac713993b2cf437 /src/control/GameLogic.h
parentMerge branch 'miami' of https://github.com/GTAmodding/re3 into miami (diff)
parentfix (diff)
downloadre3-6d3e54369ce9ac826ab7c74da4be1c15d3ff3df0.tar
re3-6d3e54369ce9ac826ab7c74da4be1c15d3ff3df0.tar.gz
re3-6d3e54369ce9ac826ab7c74da4be1c15d3ff3df0.tar.bz2
re3-6d3e54369ce9ac826ab7c74da4be1c15d3ff3df0.tar.lz
re3-6d3e54369ce9ac826ab7c74da4be1c15d3ff3df0.tar.xz
re3-6d3e54369ce9ac826ab7c74da4be1c15d3ff3df0.tar.zst
re3-6d3e54369ce9ac826ab7c74da4be1c15d3ff3df0.zip
Diffstat (limited to 'src/control/GameLogic.h')
-rw-r--r--src/control/GameLogic.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/control/GameLogic.h b/src/control/GameLogic.h
index 43e244a3..9b774cc7 100644
--- a/src/control/GameLogic.h
+++ b/src/control/GameLogic.h
@@ -1,13 +1,51 @@
#pragma once
+class CAutomobile;
+
class CGameLogic
{
public:
+ enum {
+ SHORTCUT_NONE = 0,
+ SHORTCUT_INIT,
+ SHORTCUT_IDLE,
+ SHORTCUT_GETTING_IN,
+ SHORTCUT_TRANSITION,
+ SHORTCUT_ARRIVING,
+ SHORTCUT_GETTING_OUT
+ };
+
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);
+ 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);
+
static uint8 ActivePlayers;
+ 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;
}; \ No newline at end of file