2020-05-27 09:21:20 +02:00
|
|
|
#pragma once
|
2021-12-22 16:23:57 +03:00
|
|
|
#include "Game/items.h"
|
2021-11-10 16:11:36 +11:00
|
|
|
|
2020-05-27 09:21:20 +02:00
|
|
|
#define MAX_COLLECTED_PICKUPS 32
|
|
|
|
|
2021-07-11 17:09:24 +01:00
|
|
|
enum GAME_OBJECT_ID : short;
|
|
|
|
|
2022-02-25 14:28:28 +11:00
|
|
|
struct DisplayPickup
|
2020-05-30 15:55:23 +02:00
|
|
|
{
|
2022-02-25 14:28:28 +11:00
|
|
|
int Life;
|
|
|
|
short ObjectNumber;
|
2020-05-30 15:55:23 +02:00
|
|
|
};
|
|
|
|
|
2022-02-25 14:28:28 +11:00
|
|
|
void DrawHealthBarOverlay(ITEM_INFO* item, int value);
|
|
|
|
void DrawHealthBar(ITEM_INFO* item, float value);
|
2021-11-10 16:11:36 +11:00
|
|
|
void UpdateHealthBar(ITEM_INFO* item, int flash);
|
2020-05-27 09:21:20 +02:00
|
|
|
void DrawAirBar(float value);
|
2021-11-10 16:11:36 +11:00
|
|
|
void UpdateAirBar(ITEM_INFO* item, int flash);
|
|
|
|
void DrawSprintBar(float value);
|
2022-02-25 14:28:28 +11:00
|
|
|
void UpdateSprintBar(ITEM_INFO* item);
|
2021-07-11 17:09:24 +01:00
|
|
|
void AddDisplayPickup(GAME_OBJECT_ID objectNumber);
|
2021-06-07 01:24:15 -05:00
|
|
|
void DrawAllPickups();
|
2020-05-27 09:21:20 +02:00
|
|
|
void InitialisePickupDisplay();
|
|
|
|
int FlashIt();
|
|
|
|
|
|
|
|
extern short PickupX;
|
|
|
|
extern short PickupY;
|
|
|
|
extern short CurrentPickup;
|
2022-02-25 14:28:28 +11:00
|
|
|
extern DisplayPickup Pickups[MAX_COLLECTED_PICKUPS];
|
2020-05-27 09:21:20 +02:00
|
|
|
extern short PickupVel;
|
|
|
|
extern int OldHitPoints;
|
2020-08-04 20:51:47 +10:00
|
|
|
extern int HealthBarTimer;
|
|
|
|
extern float HealthBar;
|
|
|
|
extern float MutateAmount;
|
2020-05-27 09:21:20 +02:00
|
|
|
extern int FlashState;
|
|
|
|
extern int PoisonFlag;
|
2020-08-04 20:51:47 +10:00
|
|
|
|
|
|
|
extern bool EnableSmoothHealthBar;
|