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

Function ClearStateVariables

Source/player.cpp:187–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187void ClearStateVariables(Player &player)
188{
189 player.position.temp = { 0, 0 };
190 player.tempDirection = Direction::South;
191 player.queuedSpell.spellLevel = 0;
192}
193
194void StartAttack(Player &player, Direction d, bool includesFirstFrame)
195{

Callers 7

DoWalkFunction · 0.85
DoAttackFunction · 0.85
DoRangeAttackFunction · 0.85
DoBlockFunction · 0.85
DoSpellFunction · 0.85
DoGotHitFunction · 0.85
InitPlayerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected