2020-05-27 09:21:20 +02:00
|
|
|
#pragma once
|
2021-11-10 16:11:36 +11:00
|
|
|
#include "items.h"
|
|
|
|
|
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;
|
|
|
|
|
2021-07-18 15:22:15 +01:00
|
|
|
struct DISPLAY_PICKUP
|
2020-05-30 15:55:23 +02:00
|
|
|
{
|
|
|
|
short life;
|
|
|
|
short objectNumber;
|
|
|
|
};
|
|
|
|
|
2020-05-27 09:21:20 +02:00
|
|
|
void DrawHealthBarOverlay(int value);
|
|
|
|
void DrawHealthBar(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);
|
|
|
|
void UpdateSprintBar();
|
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;
|
|
|
|
extern DISPLAY_PICKUP Pickups[MAX_COLLECTED_PICKUPS];
|
|
|
|
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;
|