You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
90 lines
2.3 KiB
90 lines
2.3 KiB
/** |
|
* @file control.h |
|
* |
|
* Interface of the character and main control panels |
|
*/ |
|
#ifndef __CONTROL_H__ |
|
#define __CONTROL_H__ |
|
|
|
extern BOOL drawhpflag; |
|
extern BOOL dropGoldFlag; |
|
extern BOOL panbtn[8]; |
|
extern BOOL chrbtn[4]; |
|
extern BOOL lvlbtndown; |
|
extern int dropGoldValue; |
|
extern BOOL drawmanaflag; |
|
extern BOOL chrbtnactive; |
|
extern BOOL pinfoflag; |
|
extern int pSpell; |
|
extern char infoclr; |
|
extern char tempstr[256]; |
|
extern BOOLEAN whisper[MAX_PLRS]; |
|
extern int pSplType; |
|
extern int frame; |
|
extern int initialDropGoldIndex; |
|
extern BOOL talkflag; |
|
extern BOOL sbookflag; |
|
extern BOOL chrflag; |
|
extern BOOL drawbtnflag; |
|
extern char infostr[256]; |
|
extern char panelstr[4][64]; |
|
extern BOOL panelflag; |
|
extern int initialDropGoldValue; |
|
extern BOOL panbtndown; |
|
extern BOOL spselflag; |
|
|
|
void DrawSpellList(); |
|
void SetSpell(); |
|
void SetSpeedSpell(int slot); |
|
void ToggleSpell(int slot); |
|
void PrintChar(int nOffset, int nCel, char col); |
|
void AddPanelString(const char *str, BOOL just); |
|
void ClearPanel(); |
|
void DrawPanelBox(int x, int y, int w, int h, int sx, int sy); |
|
void DrawLifeFlask(); |
|
void UpdateLifeFlask(); |
|
void DrawManaFlask(); |
|
void control_update_life_mana(); |
|
void UpdateManaFlask(); |
|
void InitControlPan(); |
|
void DrawCtrlPan(); |
|
void DrawCtrlBtns(); |
|
void DoSpeedBook(); |
|
void DoPanBtn(); |
|
void control_check_btn_press(); |
|
void DoAutoMap(); |
|
void CheckPanelInfo(); |
|
void CheckBtnUp(); |
|
void FreeControlPan(); |
|
BOOL control_WriteStringToBuffer(BYTE *str); |
|
void DrawInfoBox(); |
|
void PrintGameStr(int x, int y, const char *str, int color); |
|
void DrawChr(); |
|
void CheckLvlBtn(); |
|
void ReleaseLvlBtn(); |
|
void DrawLevelUpIcon(); |
|
void CheckChrBtns(); |
|
void ReleaseChrBtns(); |
|
void DrawDurIcon(); |
|
void RedBack(); |
|
void DrawSpellBook(); |
|
void CheckSBook(); |
|
const char *get_pieces_str(int nGold); |
|
void DrawGoldSplit(int amount); |
|
void control_drop_gold(char vkey); |
|
void control_remove_gold(int pnum, int gold_index); |
|
void control_set_gold_curs(int pnum); |
|
void DrawTalkPan(); |
|
BOOL control_check_talk_btn(); |
|
void control_release_talk_btn(); |
|
void control_type_message(); |
|
void control_reset_talk(); |
|
BOOL control_talk_last_key(int vkey); |
|
BOOL control_presskeys(int vkey); |
|
|
|
/* rdata */ |
|
extern const BYTE fontframe[128]; |
|
extern const BYTE fontkern[68]; |
|
extern const BYTE gbFontTransTbl[256]; |
|
|
|
#endif /* __CONTROL_H__ */
|
|
|