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.
60 lines
1.1 KiB
60 lines
1.1 KiB
/** |
|
* @file cursor.h |
|
* |
|
* Interface of cursor tracking functionality. |
|
*/ |
|
#pragma once |
|
|
|
#include <stdint.h> |
|
|
|
#include "miniwin/miniwin.h" |
|
|
|
namespace devilution { |
|
|
|
enum cursor_id : uint8_t { |
|
CURSOR_NONE, |
|
CURSOR_HAND, |
|
CURSOR_IDENTIFY, |
|
CURSOR_REPAIR, |
|
CURSOR_RECHARGE, |
|
CURSOR_DISARM, |
|
CURSOR_OIL, |
|
CURSOR_TELEKINESIS, |
|
CURSOR_RESURRECT, |
|
CURSOR_TELEPORT, |
|
CURSOR_HEALOTHER, |
|
CURSOR_HOURGLASS, |
|
CURSOR_FIRSTITEM, |
|
}; |
|
|
|
extern int cursW; |
|
extern int cursH; |
|
extern int pcursmonst; |
|
extern int icursW28; |
|
extern int icursH28; |
|
extern BYTE *pCursCels; |
|
extern BYTE *pCursCels2; |
|
extern int icursH; |
|
extern int8_t pcursinvitem; |
|
extern int icursW; |
|
extern int8_t pcursitem; |
|
extern int8_t pcursobj; |
|
extern int8_t pcursplr; |
|
extern int cursmx; |
|
extern int cursmy; |
|
extern int pcurs; |
|
|
|
void InitCursor(); |
|
void FreeCursor(); |
|
void SetICursor(int i); |
|
void NewCursor(int i); |
|
void InitLevelCursor(); |
|
void CheckRportal(); |
|
void CheckTown(); |
|
void CheckCursMove(); |
|
|
|
/* rdata */ |
|
extern const int InvItemWidth[]; |
|
extern const int InvItemHeight[]; |
|
|
|
} // namespace devilution
|
|
|