Problem Statement: As a player, I should have a state for my character which prevents me from interrupting my current state, so that I can have a more believable experience.
Current Situation: When a player initiates an attack on an NPC, they are able to leave the room with any of the valid move directions, but the fight continues despite the NPC not following the player.
Proposed Solution: Restrict the player from moving when they are in combat. This should be accomplished in a way that will support player states other than combat since there will be other reasons that a player cannot move, such as if they are sleeping or rooted.
Acceptance Criteria:
GIVEN a player is in an ongoing combat in a room with exits
WHEN the player attempts to exit prior to the fight completing
THEN they receive a message saying they cannot perform that action
GIVEN a player has been in combat in a room with exits
WHEN the combat is complete and the player attempts to leave the room
THEN they do not receive a message saying they cannot perform that action
AND they move to the appropriate room