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

Function IsNetPlayerValid

Source/multi.cpp:162–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162bool IsNetPlayerValid(const Player &player)
163{
164 return player._pLevel >= 1
165 && player._pLevel <= MaxCharacterLevel
166 && static_cast<uint8_t>(player._pClass) < enum_size<HeroClass>::value
167 && player.plrlevel < NUMLEVELS
168 && InDungeonBounds(player.position.tile)
169 && !string_view(player._pName).empty();
170}
171
172void CheckPlayerInfoTimeouts()
173{

Callers 2

CheckPlayerInfoTimeoutsFunction · 0.85

Calls 2

InDungeonBoundsFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected