summaryrefslogtreecommitdiffstats
path: root/src/control/Pickups.h
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-04-12 22:50:34 +0200
committerSergeanur <s.anureev@yandex.ua>2020-04-13 11:07:07 +0200
commit741c9405d0107daf28fefef3c882ba58a791e7d3 (patch)
treeae6da94d0d03d22a55bb24d4524726b184329188 /src/control/Pickups.h
parentMerge pull request #409 from erorcun/erorcun (diff)
downloadre3-741c9405d0107daf28fefef3c882ba58a791e7d3.tar
re3-741c9405d0107daf28fefef3c882ba58a791e7d3.tar.gz
re3-741c9405d0107daf28fefef3c882ba58a791e7d3.tar.bz2
re3-741c9405d0107daf28fefef3c882ba58a791e7d3.tar.lz
re3-741c9405d0107daf28fefef3c882ba58a791e7d3.tar.xz
re3-741c9405d0107daf28fefef3c882ba58a791e7d3.tar.zst
re3-741c9405d0107daf28fefef3c882ba58a791e7d3.zip
Diffstat (limited to 'src/control/Pickups.h')
-rw-r--r--src/control/Pickups.h25
1 files changed, 24 insertions, 1 deletions
diff --git a/src/control/Pickups.h b/src/control/Pickups.h
index 3e075b24..b5b4f396 100644
--- a/src/control/Pickups.h
+++ b/src/control/Pickups.h
@@ -102,8 +102,31 @@ extern uint16 AmmoForWeapon[20];
extern uint16 AmmoForWeapon_OnStreet[20];
extern uint16 CostOfWeapon[20];
+enum ePacmanPickupType
+{
+ PACMAN_NONE,
+ PACMAN_SCRAMBLE,
+ PACMAN_RACE,
+};
+
+class CPacManPickup
+{
+public:
+ CVector m_vecPosn;
+ CObject *m_pObject;
+ uint8 m_eType;
+
+ void Update();
+};
+
class CPacManPickups
{
+ friend CPacManPickup;
+
+ static CPacManPickup aPMPickUps[NUMPACMANPICKUPS];
+ static CVector LastPickUpCoors;
+ static int PillsEatenInRace;
+ static bool bPMActive;
public:
static void Init(void);
static void Update(void);
@@ -111,11 +134,11 @@ public:
static void GeneratePMPickUpsForRace(int32);
static void GenerateOnePMPickUp(CVector);
static void Render(void);
- static void DoCleanUpPacManStuff(void);
static void StartPacManRace(int32);
static void StartPacManRecord(void);
static uint32 QueryPowerPillsEatenInRace(void);
static void ResetPowerPillsEatenInRace(void);
+ static void ClearPMPickUps(void);
static void CleanUpPacManStuff(void);
static void StartPacManScramble(CVector, float, int16);
static uint32 QueryPowerPillsCarriedByPlayer(void);