Devilution
Diablo devolved - magic behind the 1996 computer game
|
Go to the documentation of this file.
15 static DWORD plrmsg_ticks;
18 plrmsg_ticks = -SDL_GetTicks();
22 plrmsg_ticks += SDL_GetTicks();
25 pMsg->
time += plrmsg_ticks;
34 pMsg->
time = SDL_GetTicks();
35 result = strncpy(pMsg->
str, pszMsg,
sizeof(pMsg->
str));
36 pMsg->
str[
sizeof(pMsg->
str) - 1] =
'\0';
49 pMsg->
time = SDL_GetTicks();
50 vsprintf(pMsg->
str, pszFmt, va);
52 return strlen(pMsg->
str);
60 pMsg->
time = SDL_GetTicks();
61 strlen(
plr[pnum]._pName);
70 DWORD tick = SDL_GetTicks();
73 if ((
int)(tick - pMsg->
time) > 10000)
106 for (i = 0; i < 8; i++) {
114 void PrintPlrMsg(DWORD x, DWORD y, DWORD width,
const char *str, BYTE col)
122 const char *sstr = str;
123 const char *endstr = sstr;
132 else if (len >= width)
140 while (str < endstr) {
_plrmsg plr_msgs[PMSG_COUNT]
#define DEVILUTION_END_NAMESPACE
char * ErrorPlrMsg(const char *pszMsg)
void plrmsg_delay(BOOL delay)
void PrintPlrMsg(DWORD x, DWORD y, DWORD width, const char *str, BYTE col)
const BYTE fontkern[68]
Maps from smaltext.cel frame number to character width.
const char text_color_from_player_num[MAX_PLRS+1]
Maps from player_num to text colour, as used in chat messages.
DEVILUTION_BEGIN_NAMESPACE BOOL invflag
size_t EventPlrMsg(const char *pszFmt,...)
void SendPlrMsg(int pnum, const char *pszStr)
void PrintChar(int sx, int sy, int nCel, char col)
Print letter to the back buffer.
const BYTE fontframe[128]
Maps from font index to smaltext.cel frame number.
const BYTE gbFontTransTbl[256]
Maps ASCII character code to font index, as used by the small, medium and large sized fonts; which co...
static DEVILUTION_BEGIN_NAMESPACE BYTE plr_msg_slot
char _pName[PLR_NAME_LEN]
PlayerStruct plr[MAX_PLRS]