MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / NetSendCmdDamage

Function NetSendCmdDamage

Source/msg.cpp:3090–3102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3088}
3089
3090void NetSendCmdDamage(bool bHiPri, uint8_t bPlr, uint32_t dwDam, DamageType damageType)
3091{
3092 TCmdDamage cmd;
3093
3094 cmd.bCmd = CMD_PLRDAMAGE;
3095 cmd.bPlr = bPlr;
3096 cmd.dwDam = dwDam;
3097 cmd.damageType = damageType;
3098 if (bHiPri)
3099 NetSendHiPri(MyPlayerId, (byte *)&cmd, sizeof(cmd));
3100 else
3101 NetSendLoPri(MyPlayerId, (byte *)&cmd, sizeof(cmd));
3102}
3103
3104void NetSendCmdMonDmg(bool bHiPri, uint16_t wMon, uint32_t dwDam)
3105{

Callers 2

Plr2PlrMHitFunction · 0.85
PlrHitPlrFunction · 0.85

Calls 2

NetSendHiPriFunction · 0.85
NetSendLoPriFunction · 0.85

Tested by

no test coverage detected