2022-05-19 01:51:26 -07:00
|
|
|
#ifndef INTERFACE_H
|
|
|
|
#define INTERFACE_H
|
|
|
|
|
|
|
|
#include "db.h"
|
|
|
|
#include "obj_types.h"
|
|
|
|
|
2022-09-23 05:43:44 -07:00
|
|
|
namespace fallout {
|
|
|
|
|
2022-05-19 01:51:26 -07:00
|
|
|
typedef enum Hand {
|
|
|
|
// Item1 (Punch)
|
|
|
|
HAND_LEFT,
|
|
|
|
// Item2 (Kick)
|
|
|
|
HAND_RIGHT,
|
|
|
|
HAND_COUNT,
|
|
|
|
} Hand;
|
|
|
|
|
2022-06-18 07:39:55 -07:00
|
|
|
#define INDICATOR_BOX_WIDTH 130
|
|
|
|
#define INDICATOR_BOX_HEIGHT 21
|
|
|
|
|
|
|
|
#define INTERFACE_BAR_WIDTH 640
|
|
|
|
#define INTERFACE_BAR_HEIGHT 100
|
|
|
|
|
2022-05-19 01:51:26 -07:00
|
|
|
typedef enum InterfaceItemAction {
|
|
|
|
INTERFACE_ITEM_ACTION_DEFAULT = -1,
|
|
|
|
INTERFACE_ITEM_ACTION_USE,
|
|
|
|
INTERFACE_ITEM_ACTION_PRIMARY,
|
|
|
|
INTERFACE_ITEM_ACTION_PRIMARY_AIMING,
|
|
|
|
INTERFACE_ITEM_ACTION_SECONDARY,
|
|
|
|
INTERFACE_ITEM_ACTION_SECONDARY_AIMING,
|
|
|
|
INTERFACE_ITEM_ACTION_RELOAD,
|
|
|
|
INTERFACE_ITEM_ACTION_COUNT,
|
|
|
|
} InterfaceItemAction;
|
|
|
|
|
|
|
|
extern int gInterfaceBarWindow;
|
2022-05-21 11:30:25 -07:00
|
|
|
extern bool gInterfaceBarMode;
|
2022-05-19 01:51:26 -07:00
|
|
|
|
|
|
|
int interfaceInit();
|
|
|
|
void interfaceReset();
|
|
|
|
void interfaceFree();
|
|
|
|
int interfaceLoad(File* stream);
|
|
|
|
int interfaceSave(File* stream);
|
2022-09-01 08:41:37 -07:00
|
|
|
void intface_hide();
|
2022-05-19 01:51:26 -07:00
|
|
|
void _intface_show();
|
|
|
|
void interfaceBarEnable();
|
|
|
|
void interfaceBarDisable();
|
|
|
|
bool interfaceBarEnabled();
|
|
|
|
void interfaceBarRefresh();
|
|
|
|
void interfaceRenderHitPoints(bool animate);
|
|
|
|
void interfaceRenderArmorClass(bool animate);
|
|
|
|
void interfaceRenderActionPoints(int actionPointsLeft, int bonusActionPoints);
|
|
|
|
int interfaceGetCurrentHitMode(int* hitMode, bool* aiming);
|
|
|
|
int interfaceUpdateItems(bool animated, int leftItemAction, int rightItemAction);
|
|
|
|
int interfaceBarSwapHands(bool animated);
|
|
|
|
int interfaceGetItemActions(int* leftItemAction, int* rightItemAction);
|
|
|
|
int interfaceCycleItemAction();
|
|
|
|
void _intface_use_item();
|
|
|
|
int interfaceGetCurrentHand();
|
|
|
|
int interfaceGetActiveItem(Object** a1);
|
|
|
|
int _intface_update_ammo_lights();
|
|
|
|
void interfaceBarEndButtonsShow(bool animated);
|
|
|
|
void interfaceBarEndButtonsHide(bool animated);
|
|
|
|
void interfaceBarEndButtonsRenderGreenLights();
|
|
|
|
void interfaceBarEndButtonsRenderRedLights();
|
|
|
|
int indicatorBarRefresh();
|
|
|
|
bool indicatorBarShow();
|
|
|
|
bool indicatorBarHide();
|
|
|
|
|
2022-09-23 05:43:44 -07:00
|
|
|
} // namespace fallout
|
|
|
|
|
2022-05-19 01:51:26 -07:00
|
|
|
#endif /* INTERFACE_H */
|