private static bool CharacterIsAtPosition(ICharacterRenderProperties renderProperties, int row, int col) { if (renderProperties.IsActing(CharacterActionState.Walking)) { return(row == renderProperties.GetDestinationY() && col == renderProperties.GetDestinationX()); } return(row == renderProperties.MapY && col == renderProperties.MapX); }